Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.04/2.04, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.269e-05, allocations: 0 / 249.7 MB, free: 15.17 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3931, allocations: 44.5 MB / 294.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.574/0.9672, allocations: 160.5 MB / 454.7 MB, free: 69.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003447/0.9676, allocations: 102.4 kB / 454.8 MB, free: 69.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.932/2.899, allocations: 390.3 MB / 0.8253 GB, free: 25.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.275e-06/2.899, allocations: 3.938 kB / 0.8253 GB, free: 25.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000946/2.9, allocations: 260.3 kB / 0.8255 GB, free: 25.93 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.04846/2.949, allocations: 10.26 MB / 0.8355 GB, free: 17.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/2.949, allocations: 12.03 kB / 0.8355 GB, free: 17.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03752/2.986, allocations: 4.38 MB / 0.8398 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03593/3.022, allocations: 8.837 MB / 0.8484 GB, free: 4.523 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001099/3.023, allocations: 372 kB / 0.8488 GB, free: 4.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005328/3.029, allocations: 0.6327 MB / 0.8494 GB, free: 3.527 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04499/3.074, allocations: 13.26 MB / 0.8624 GB, free: 6.262 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.415/3.489, allocations: 15.52 MB / 0.8775 GB, free: 33.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005763/3.49, allocations: 20.97 kB / 0.8775 GB, free: 33.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003558/3.493, allocations: 10.34 kB / 0.8776 GB, free: 33.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009888/3.494, allocations: 0.6878 MB / 0.8782 GB, free: 33.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1422/3.636, allocations: 56.6 MB / 0.9335 GB, free: 23.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0302/3.667, allocations: 17.59 MB / 0.9507 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01511/3.682, allocations: 6.286 MB / 0.9568 GB, free: 9.375 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05552/3.737, allocations: 19.17 MB / 0.9755 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001123/3.738, allocations: 87.19 kB / 0.9756 GB, free: 15.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=624): time 1.005e-05/3.738, allocations: 3.438 kB / 0.9756 GB, free: 15.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=657): time 0.09397/3.832, allocations: 25.26 MB / 1 GB, free: 4.449 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/3.832, allocations: 135 kB / 1 GB, free: 4.352 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01189/3.844, allocations: 3.353 MB / 1.004 GB, free: 2.996 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001727/3.845, allocations: 29.58 kB / 1.004 GB, free: 2.965 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005895/3.851, allocations: 4.422 MB / 1.008 GB, free: 15.51 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005198/3.857, allocations: 2.118 MB / 1.01 GB, free: 13.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00219/3.859, allocations: 0 / 1.01 GB, free: 13.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001279/3.86, allocations: 0.6249 MB / 1.011 GB, free: 13.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01632/3.876, allocations: 4.357 MB / 1.015 GB, free: 11.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01523/3.892, allocations: 6.342 MB / 1.021 GB, free: 7.266 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02088/3.913, allocations: 6.45 MB / 1.027 GB, free: 2.086 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001209/3.913, allocations: 20 kB / 1.027 GB, free: 2.066 MB / 458.7 MB Notification: Performance of matching and sorting (n=995) (initialization): time 0.42/4.333, allocations: 14.41 MB / 1.042 GB, free: 65.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.486e-05/4.333, allocations: 35.47 kB / 1.042 GB, free: 65.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001806/4.333, allocations: 65.25 kB / 1.042 GB, free: 65.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007984/4.341, allocations: 2.38 MB / 1.044 GB, free: 65.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01219/4.354, allocations: 1.552 MB / 1.045 GB, free: 65.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/4.369, allocations: 10.38 MB / 1.056 GB, free: 61.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01134/4.38, allocations: 434.7 kB / 1.056 GB, free: 61.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002308/4.382, allocations: 344.7 kB / 1.056 GB, free: 61.25 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smeeQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.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: powerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[1].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[3].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.re:VARIABLE(flow=true unit = "A" ) "Real 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[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.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: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (790): * Single equations (assignments): 721 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.003365/4.386, allocations: 375.6 kB / 1.057 GB, free: 61.13 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03391/4.42, allocations: 11.26 MB / 1.068 GB, free: 60.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003009/4.423, allocations: 0.513 MB / 1.068 GB, free: 60.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03851/4.461, allocations: 12.17 MB / 1.08 GB, free: 60.08 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03279/4.494, allocations: 10.99 MB / 1.091 GB, free: 59.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.507e-05/4.494, allocations: 8.609 kB / 1.091 GB, free: 59.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001867/4.494, allocations: 32.94 kB / 1.091 GB, free: 59.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08317/4.578, allocations: 29.63 MB / 1.12 GB, free: 52.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.831e-05/4.578, allocations: 3.906 kB / 1.12 GB, free: 52.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0082/4.586, allocations: 0.9164 MB / 1.121 GB, free: 52.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009238/4.595, allocations: 2.614 MB / 1.123 GB, free: 51.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001592/4.597, allocations: 75.45 kB / 1.123 GB, free: 51.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02422/4.621, allocations: 15.83 MB / 1.139 GB, free: 40.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004745/4.626, allocations: 2.736 MB / 1.141 GB, free: 38.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0499/4.676, allocations: 18.91 MB / 1.16 GB, free: 26.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006003/4.682, allocations: 1.57 MB / 1.161 GB, free: 25.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002883/4.685, allocations: 11.61 kB / 1.161 GB, free: 25.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008032/4.693, allocations: 285.5 kB / 1.162 GB, free: 25.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002673/4.696, allocations: 0.5012 MB / 1.162 GB, free: 24.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001126/4.697, allocations: 184.6 kB / 1.162 GB, free: 24.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00605/4.703, allocations: 2.421 MB / 1.165 GB, free: 22.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.82e-07/4.703, allocations: 0 / 1.165 GB, free: 22.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01265/4.716, allocations: 1.852 MB / 1.167 GB, free: 20.83 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (459): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0478/4.763, allocations: 21 MB / 1.187 GB, free: 1.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03877/4.802, allocations: 11.29 MB / 1.198 GB, free: 9.723 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/4.802, allocations: 2.906 kB / 1.198 GB, free: 9.723 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01862/4.821, allocations: 5.857 MB / 1.204 GB, free: 4.523 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009669/4.831, allocations: 0.8359 MB / 1.205 GB, free: 3.883 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4956/5.326, allocations: 21.8 MB / 1.226 GB, free: 81.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01615/5.343, allocations: 6.805 MB / 1.233 GB, free: 80.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01206/5.355, allocations: 4.186 MB / 1.237 GB, free: 80.23 MB / 474.7 MB Notification: Performance of SimCode: time 1.522e-06/5.355, allocations: 0 / 1.237 GB, free: 80.23 MB / 474.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_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:574:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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_SMEE_GeneratorFunctions.cpp:574:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFMU.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_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1