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 2.014/2.014, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.271e-05/2.288e-05, allocations: 0 / 249.7 MB, free: 15.16 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3276, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5322/0.8599, allocations: 142.1 MB / 436.3 MB, free: 67.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003421/0.8603, allocations: 100 kB / 436.4 MB, free: 67.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.029/1.889, allocations: 229.8 MB / 0.6506 GB, free: 51.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.889, allocations: 4 kB / 0.6506 GB, free: 51.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006083/1.89, allocations: 159.7 kB / 0.6507 GB, free: 51.2 MB / 394.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.03212/1.922, allocations: 6.791 MB / 0.6574 GB, free: 47.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/1.922, allocations: 6.969 kB / 0.6574 GB, free: 47.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03139/1.954, allocations: 3.654 MB / 0.6609 GB, free: 44.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02147/1.975, allocations: 5.925 MB / 0.6667 GB, free: 38.42 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006269/1.976, allocations: 232 kB / 0.6669 GB, free: 38.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003474/1.979, allocations: 419.9 kB / 0.6673 GB, free: 37.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02754/2.007, allocations: 9.155 MB / 0.6763 GB, free: 28.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03643/2.043, allocations: 10.19 MB / 0.6862 GB, free: 18.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005548/2.044, allocations: 23.73 kB / 0.6863 GB, free: 18.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003102/2.047, allocations: 11.75 kB / 0.6863 GB, free: 18.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008451/2.048, allocations: 486.5 kB / 0.6867 GB, free: 17.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4247/2.473, allocations: 37.7 MB / 0.7235 GB, free: 39.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02177/2.495, allocations: 18.17 MB / 0.7413 GB, free: 26.49 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009713/2.504, allocations: 4.202 MB / 0.7454 GB, free: 26.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03908/2.544, allocations: 14.01 MB / 0.7591 GB, free: 25.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.543e-05/2.544, allocations: 71.34 kB / 0.7591 GB, free: 25.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=399): time 9.247e-06/2.544, allocations: 0 / 0.7591 GB, free: 25.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=415): time 0.04964/2.593, allocations: 16.2 MB / 0.775 GB, free: 20.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/2.593, allocations: 88.25 kB / 0.775 GB, free: 20.23 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006027/2.6, allocations: 2.444 MB / 0.7774 GB, free: 19.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001014/2.601, allocations: 25.7 kB / 0.7775 GB, free: 19.22 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002545/2.603, allocations: 3.067 MB / 0.7805 GB, free: 16.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002283/2.605, allocations: 1.347 MB / 0.7818 GB, free: 15.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006207/2.606, allocations: 0 / 0.7818 GB, free: 15.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005087/2.607, allocations: 0.5327 MB / 0.7823 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006867/2.614, allocations: 2.878 MB / 0.7851 GB, free: 14.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008683/2.622, allocations: 4.847 MB / 0.7898 GB, free: 10.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/2.636, allocations: 4.487 MB / 0.7942 GB, free: 8.703 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.707e-05/2.636, allocations: 17.97 kB / 0.7942 GB, free: 8.703 MB / 394.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02919/2.665, allocations: 9.492 MB / 0.8035 GB, free: 5.316 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.689e-05/2.665, allocations: 31.72 kB / 0.8035 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/2.665, allocations: 67.16 kB / 0.8036 GB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008034/2.673, allocations: 2.45 MB / 0.806 GB, free: 4.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008043/2.682, allocations: 1.089 MB / 0.8071 GB, free: 4.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009937/2.692, allocations: 5.551 MB / 0.8125 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006955/2.699, allocations: 251.1 kB / 0.8127 GB, free: 1.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001642/2.7, allocations: 265.3 kB / 0.813 GB, free: 1.336 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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.001916/2.702, allocations: 335.9 kB / 0.8133 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03227/2.734, allocations: 8.26 MB / 0.8214 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002003/2.737, allocations: 378.5 kB / 0.8217 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02637/2.763, allocations: 8.42 MB / 0.8299 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001499/2.763, allocations: 94.12 kB / 0.83 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/2.763, allocations: 4.516 kB / 0.83 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-05/2.763, allocations: 19.8 kB / 0.8301 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05887/2.822, allocations: 19.65 MB / 0.8492 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.455e-05/2.822, allocations: 7.953 kB / 0.8492 GB, free: 5.094 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005217/2.827, allocations: 0.5648 MB / 0.8498 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008596/2.836, allocations: 2.41 MB / 0.8522 GB, free: 2.672 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001055/2.837, allocations: 50.45 kB / 0.8522 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/2.85, allocations: 7.229 MB / 0.8593 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002469/2.853, allocations: 1.802 MB / 0.861 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3653/3.218, allocations: 13.61 MB / 0.8743 GB, free: 88.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004939/3.223, allocations: 1.072 MB / 0.8754 GB, free: 88.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002298/3.226, allocations: 9.656 kB / 0.8754 GB, free: 88.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005641/3.231, allocations: 180.5 kB / 0.8755 GB, free: 88.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00174/3.233, allocations: 315.3 kB / 0.8758 GB, free: 88.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007102/3.234, allocations: 124.6 kB / 0.876 GB, free: 88.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005382/3.239, allocations: 1.746 MB / 0.8777 GB, free: 88.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.02e-07/3.239, allocations: 0 / 0.8777 GB, free: 88.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009909/3.249, allocations: 1.197 MB / 0.8788 GB, free: 88.59 MB / 442.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,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.03529/3.285, allocations: 15.46 MB / 0.8939 GB, free: 85.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01928/3.304, allocations: 7.226 MB / 0.901 GB, free: 85.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.563e-05/3.304, allocations: 0 / 0.901 GB, free: 85.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01124/3.315, allocations: 3.638 MB / 0.9045 GB, free: 84.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007943/3.323, allocations: 0.692 MB / 0.9052 GB, free: 84.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0453/3.369, allocations: 13.73 MB / 0.9186 GB, free: 82.49 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008984/3.378, allocations: 4.55 MB / 0.9231 GB, free: 81.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007058/3.385, allocations: 2.581 MB / 0.9256 GB, free: 81.67 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/3.385, allocations: 0.6562 kB / 0.9256 GB, free: 81.67 MB / 442.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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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/OMCompiler/build/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