Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.862e-05/2.874e-05, allocations: 0 / 292.2 MB, free: 8.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 50.4 MB / 342.7 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5409/0.6457, allocations: 149 MB / 491.7 MB, free: 10.17 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003967/0.6461, allocations: 107.5 kB / 491.8 MB, free: 10.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.421/2.067, allocations: 233.4 MB / 0.7082 GB, free: 41.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.445e-06/2.067, allocations: 1.469 kB / 0.7082 GB, free: 41.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006714/2.068, allocations: 161.2 kB / 0.7084 GB, free: 41.09 MB / 442.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.0342/2.102, allocations: 6.792 MB / 0.715 GB, free: 38.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/2.102, allocations: 10.56 kB / 0.715 GB, free: 38.82 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005744/2.108, allocations: 1.143 MB / 0.7161 GB, free: 38.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03154/2.14, allocations: 3.655 MB / 0.7197 GB, free: 38.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02142/2.161, allocations: 6.038 MB / 0.7256 GB, free: 37.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006588/2.162, allocations: 0.5192 MB / 0.7261 GB, free: 37.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003334/2.165, allocations: 0.6955 MB / 0.7268 GB, free: 37.47 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03614/2.201, allocations: 10.94 MB / 0.7375 GB, free: 36.69 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004046/2.202, allocations: 20.16 kB / 0.7375 GB, free: 36.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002881/2.205, allocations: 302.4 kB / 0.7378 GB, free: 36.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008063/2.206, allocations: 0.514 MB / 0.7383 GB, free: 36.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03268/2.238, allocations: 9.971 MB / 0.748 GB, free: 36.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09756/2.336, allocations: 37.89 MB / 0.785 GB, free: 21.53 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02759/2.364, allocations: 28.08 MB / 0.8124 GB, free: 10.16 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005992/2.37, allocations: 2.561 MB / 0.8149 GB, free: 9.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0235/2.393, allocations: 7.938 MB / 0.8227 GB, free: 5.129 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.711e-05/2.393, allocations: 58.84 kB / 0.8227 GB, free: 5.074 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 5.551e-06/2.393, allocations: 0 / 0.8227 GB, free: 5.074 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.02807/2.421, allocations: 8.326 MB / 0.8309 GB, free: 1.141 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004153/2.426, allocations: 1.931 MB / 0.8327 GB, free: 15.42 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01076/2.436, allocations: 3.32 MB / 0.836 GB, free: 14.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000601/2.437, allocations: 61.52 kB / 0.836 GB, free: 14.01 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004482/2.442, allocations: 3.406 MB / 0.8394 GB, free: 11.33 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001739/2.443, allocations: 0.8249 MB / 0.8402 GB, free: 10.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006723/2.444, allocations: 102.7 kB / 0.8403 GB, free: 10.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005619/2.445, allocations: 0.4928 MB / 0.8408 GB, free: 10.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006505/2.451, allocations: 1.832 MB / 0.8425 GB, free: 9.512 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/2.461, allocations: 4.238 MB / 0.8467 GB, free: 5.305 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009285/2.471, allocations: 2.794 MB / 0.8494 GB, free: 2.973 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.653e-05/2.471, allocations: 24 kB / 0.8494 GB, free: 2.949 MB / 474.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.02648/2.497, allocations: 6.724 MB / 0.856 GB, free: 14.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/2.497, allocations: 40 kB / 0.856 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002031/2.498, allocations: 84 kB / 0.8561 GB, free: 14.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004554/2.502, allocations: 0.7546 MB / 0.8569 GB, free: 13.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01045/2.513, allocations: 1.099 MB / 0.8579 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/2.529, allocations: 5.209 MB / 0.863 GB, free: 8.285 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008957/2.538, allocations: 312.1 kB / 0.8633 GB, free: 8.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001202/2.54, allocations: 274.3 kB / 0.8636 GB, free: 7.758 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00143/2.541, allocations: 444 kB / 0.864 GB, free: 7.379 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001571/2.543, allocations: 383.2 kB / 0.8644 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/2.56, allocations: 4.202 MB / 0.8685 GB, free: 3.488 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-05/2.56, allocations: 24 kB / 0.8685 GB, free: 3.465 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/2.56, allocations: 11.8 kB / 0.8685 GB, free: 3.457 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.372e-05/2.561, allocations: 11.62 kB / 0.8685 GB, free: 3.457 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.405/2.966, allocations: 14.47 MB / 0.8826 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.213e-05/2.966, allocations: 10.69 kB / 0.8827 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004001/2.97, allocations: 472 kB / 0.8831 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00378/2.973, allocations: 0.6959 MB / 0.8838 GB, free: 80.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005732/2.974, allocations: 67.7 kB / 0.8839 GB, free: 80.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/2.988, allocations: 6.933 MB / 0.8906 GB, free: 77.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002288/2.99, allocations: 1.863 MB / 0.8924 GB, free: 76.51 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01723/3.008, allocations: 7.725 MB / 0.9 GB, free: 74.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003059/3.011, allocations: 0.7918 MB / 0.9008 GB, free: 74.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/3.012, allocations: 63.08 kB / 0.9008 GB, free: 74.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003985/3.016, allocations: 169.7 kB / 0.901 GB, free: 74.17 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007578/3.017, allocations: 221.8 kB / 0.9012 GB, free: 74.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002841/3.017, allocations: 85.36 kB / 0.9013 GB, free: 74.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005954/3.023, allocations: 2.434 MB / 0.9037 GB, free: 73.96 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.793e-06/3.023, allocations: 0 / 0.9037 GB, free: 73.96 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008283/3.031, allocations: 1.338 MB / 0.905 GB, free: 73.96 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * 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 (238): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01789/3.049, allocations: 11.39 MB / 0.9161 GB, free: 68.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01177/3.061, allocations: 4.839 MB / 0.9208 GB, free: 68.42 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.648e-05/3.061, allocations: 6.5 kB / 0.9208 GB, free: 68.42 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006053/3.067, allocations: 2.294 MB / 0.9231 GB, free: 68.06 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00755/3.075, allocations: 0.903 MB / 0.9239 GB, free: 68.03 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04538/3.12, allocations: 12.21 MB / 0.9359 GB, free: 65.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009459/3.13, allocations: 4.496 MB / 0.9402 GB, free: 64.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007013/3.137, allocations: 2.56 MB / 0.9427 GB, free: 64.69 MB / 490.7 MB Notification: Performance of SimCode: time 1.783e-06/3.137, allocations: 2.141 kB / 0.9427 GB, free: 64.69 MB / 490.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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp103 = 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_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp103 = 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_OpenCircuitCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o] Error 1