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.825/1.825, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.05e-05/3.055e-05, allocations: 4 kB / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.0925, allocations: 44.51 MB / 300 MB, free: 6.492 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4854/0.5779, allocations: 142.8 MB / 442.8 MB, free: 1.742 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.5783, allocations: 95.56 kB / 442.9 MB, free: 1.691 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017/1.595, allocations: 232.6 MB / 0.6597 GB, free: 21.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.595, allocations: 0 / 0.6597 GB, free: 21.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005504/1.596, allocations: 163.8 kB / 0.6598 GB, free: 21.02 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.03008/1.626, allocations: 6.794 MB / 0.6665 GB, free: 14.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/1.626, allocations: 12.03 kB / 0.6665 GB, free: 14.13 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005162/1.631, allocations: 1.136 MB / 0.6676 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03069/1.662, allocations: 3.658 MB / 0.6711 GB, free: 9.312 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0203/1.682, allocations: 5.928 MB / 0.6769 GB, free: 3.301 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007725/1.683, allocations: 0.5217 MB / 0.6774 GB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003256/1.686, allocations: 0.6913 MB / 0.6781 GB, free: 2.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3452/2.031, allocations: 11.23 MB / 0.6891 GB, free: 34.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004622/2.032, allocations: 20.84 kB / 0.6891 GB, free: 34.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00282/2.035, allocations: 299.2 kB / 0.6894 GB, free: 34.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009016/2.036, allocations: 493.7 kB / 0.6899 GB, free: 34.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03227/2.068, allocations: 10.4 MB / 0.7 GB, free: 34.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0947/2.163, allocations: 38.32 MB / 0.7374 GB, free: 27.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02239/2.185, allocations: 18.38 MB / 0.7554 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009837/2.195, allocations: 4.204 MB / 0.7595 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03679/2.232, allocations: 13.66 MB / 0.7728 GB, free: 19.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.922e-05/2.232, allocations: 73.44 kB / 0.7729 GB, free: 19.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=399): time 7.564e-06/2.232, allocations: 2.5 kB / 0.7729 GB, free: 19.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.03675/2.269, allocations: 14.24 MB / 0.7868 GB, free: 13.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00284/2.272, allocations: 1.941 MB / 0.7887 GB, free: 11.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006924/2.279, allocations: 2.933 MB / 0.7916 GB, free: 10.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009287/2.28, allocations: 79.83 kB / 0.7917 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002833/2.282, allocations: 3.019 MB / 0.7946 GB, free: 7.781 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002396/2.285, allocations: 1.405 MB / 0.796 GB, free: 6.707 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006025/2.285, allocations: 103.6 kB / 0.7961 GB, free: 6.625 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000489/2.286, allocations: 0.5282 MB / 0.7966 GB, free: 6.215 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007026/2.293, allocations: 2.848 MB / 0.7994 GB, free: 5.035 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009328/2.302, allocations: 4.808 MB / 0.8041 GB, free: 1.312 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009635/2.312, allocations: 3.783 MB / 0.8078 GB, free: 15.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.992e-05/2.312, allocations: 17.62 kB / 0.8078 GB, free: 15.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02524/2.337, allocations: 8.937 MB / 0.8165 GB, free: 11.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/2.338, allocations: 32 kB / 0.8165 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/2.338, allocations: 68 kB / 0.8166 GB, free: 11.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008775/2.347, allocations: 2.467 MB / 0.819 GB, free: 9.457 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007961/2.355, allocations: 1.054 MB / 0.82 GB, free: 8.633 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/2.366, allocations: 5.398 MB / 0.8253 GB, free: 3.762 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006793/2.373, allocations: 314.6 kB / 0.8256 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001564/2.374, allocations: 270.1 kB / 0.8259 GB, free: 3.25 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.001766/2.376, allocations: 435.8 kB / 0.8263 GB, free: 2.895 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001612/2.378, allocations: 413.9 kB / 0.8267 GB, free: 2.488 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02611/2.404, allocations: 7.929 MB / 0.8344 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001499/2.404, allocations: 100.7 kB / 0.8345 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/2.404, allocations: 0 / 0.8345 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.842e-05/2.404, allocations: 18.09 kB / 0.8345 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3785/2.783, allocations: 19.44 MB / 0.8535 GB, free: 76.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.755e-05/2.783, allocations: 5.781 kB / 0.8535 GB, free: 76.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004858/2.788, allocations: 0.5261 MB / 0.854 GB, free: 76.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009291/2.797, allocations: 2.425 MB / 0.8564 GB, free: 76.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001093/2.798, allocations: 96.14 kB / 0.8565 GB, free: 76.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/2.812, allocations: 7.145 MB / 0.8635 GB, free: 74.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00233/2.814, allocations: 1.875 MB / 0.8653 GB, free: 73.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02881/2.843, allocations: 12.24 MB / 0.8773 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003972/2.847, allocations: 1.083 MB / 0.8783 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001835/2.849, allocations: 67.44 kB / 0.8784 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005112/2.854, allocations: 203.4 kB / 0.8786 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001497/2.855, allocations: 323.7 kB / 0.8789 GB, free: 71.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006841/2.856, allocations: 123.9 kB / 0.879 GB, free: 71.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005572/2.862, allocations: 2.153 MB / 0.8811 GB, free: 71.44 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.862, allocations: 3.719 kB / 0.8811 GB, free: 71.44 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008498/2.87, allocations: 1.365 MB / 0.8824 GB, free: 71.44 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.03026/2.9, allocations: 14.81 MB / 0.8969 GB, free: 68.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01878/2.919, allocations: 7.103 MB / 0.9038 GB, free: 67.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.919, allocations: 0 / 0.9038 GB, free: 67.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01081/2.93, allocations: 3.573 MB / 0.9073 GB, free: 67.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007872/2.938, allocations: 0.886 MB / 0.9082 GB, free: 67.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0461/2.984, allocations: 13.89 MB / 0.9218 GB, free: 65.19 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0086/2.993, allocations: 4.553 MB / 0.9262 GB, free: 63.56 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006647/3, allocations: 2.582 MB / 0.9287 GB, free: 61.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.783e-06/3, allocations: 3.219 kB / 0.9287 GB, free: 61.45 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