Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.282/2.282, allocations: 233 MB / 245.6 MB, free: 15.04 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.297e-05, allocations: 3.938 kB / 301.4 MB, free: 8.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 53.24 MB / 354.6 MB, free: 2.738 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5403/0.6484, allocations: 118.6 MB / 473.2 MB, free: 15.45 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003525/0.6488, allocations: 88.61 kB / 473.3 MB, free: 15.37 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1943/0.8431, allocations: 42.29 MB / 0.5035 GB, free: 4.559 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.8431, allocations: 0 / 0.5035 GB, free: 4.559 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001126/0.8433, allocations: 35.94 kB / 0.5036 GB, free: 4.523 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: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.005084/0.8484, allocations: 1.407 MB / 0.5049 GB, free: 3.066 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.8484, allocations: 12.03 kB / 0.5049 GB, free: 3.055 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005962/0.849, allocations: 194.2 kB / 0.5051 GB, free: 2.855 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002847/0.8519, allocations: 270 kB / 0.5054 GB, free: 2.59 MB / 442.7 MB Error: Variable generator.par.V_nom in package PowerSystems.AC3ph.Generation.TurboGenerator$turboGen is not constant. Error: Variable generator.Vf_nom in package PowerSystems.AC3ph.Generation.TurboGenerator$turboGen is not constant. Notification: Performance of preOpt evaluateParameters (simulation): time 0.007184/0.8591, allocations: 1.721 MB / 0.5071 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.8593, allocations: 94.33 kB / 0.5072 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006911/0.86, allocations: 129.2 kB / 0.5073 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004636/0.8647, allocations: 1.608 MB / 0.5088 GB, free: 14.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-05/0.8648, allocations: 4 kB / 0.5089 GB, free: 14.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002046/0.865, allocations: 51.98 kB / 0.5089 GB, free: 14.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002341/0.8653, allocations: 98.3 kB / 0.509 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00399/0.8693, allocations: 1.317 MB / 0.5103 GB, free: 13.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01544/0.8848, allocations: 6.107 MB / 0.5162 GB, free: 7.004 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.8867, allocations: 0.6658 MB / 0.5169 GB, free: 6.312 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.8879, allocations: 436.8 kB / 0.5173 GB, free: 5.879 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.752e-05/0.888, allocations: 16.75 kB / 0.5173 GB, free: 5.863 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.997e-05/0.8881, allocations: 51.28 kB / 0.5174 GB, free: 5.805 MB / 458.7 MB Notification: Performance of pre-optimization done (n=73): time 3.817e-06/0.8881, allocations: 0 / 0.5174 GB, free: 5.805 MB / 458.7 MB Notification: Performance of matching and sorting (n=84): time 0.0144/0.9025, allocations: 3.661 MB / 0.521 GB, free: 2.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.9026, allocations: 175 kB / 0.5211 GB, free: 1.863 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.9043, allocations: 0.7356 MB / 0.5218 GB, free: 1.125 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002123/0.9045, allocations: 41.7 kB / 0.5219 GB, free: 1.078 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000586/0.9051, allocations: 0.6259 MB / 0.5225 GB, free: 456 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004795/0.9056, allocations: 307.7 kB / 0.5228 GB, free: 144 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.9057, allocations: 20 kB / 0.5228 GB, free: 124 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.2931/1.199, allocations: 362.8 kB / 0.5231 GB, free: 119.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/1.2, allocations: 463.7 kB / 0.5236 GB, free: 119.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/1.202, allocations: 0.752 MB / 0.5243 GB, free: 119.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/1.204, allocations: 0.5917 MB / 0.5249 GB, free: 119.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/1.204, allocations: 2.156 kB / 0.5249 GB, free: 119.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.006376/1.21, allocations: 1.802 MB / 0.5267 GB, free: 119.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007114/1.211, allocations: 3.222 MB / 0.5298 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005426/1.216, allocations: 1.48 MB / 0.5313 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003614/1.22, allocations: 0.5608 MB / 0.5318 GB, free: 115.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003611/1.224, allocations: 0.4996 MB / 0.5323 GB, free: 115.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01967/1.243, allocations: 19.81 MB / 0.5516 GB, free: 99.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/1.245, allocations: 72.98 kB / 0.5517 GB, free: 99.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/1.245, allocations: 45.52 kB / 0.5517 GB, free: 99.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/1.245, allocations: 3.469 kB / 0.5518 GB, free: 99.62 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006197/1.252, allocations: 1.736 MB / 0.5534 GB, free: 99.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005398/1.257, allocations: 1.471 MB / 0.5549 GB, free: 99.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003255/1.26, allocations: 0.5326 MB / 0.5554 GB, free: 99.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/1.262, allocations: 237.9 kB / 0.5556 GB, free: 99.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01791/1.28, allocations: 18.46 MB / 0.5737 GB, free: 84.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/1.281, allocations: 60.27 kB / 0.5737 GB, free: 84.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/1.281, allocations: 47.97 kB / 0.5738 GB, free: 84.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,2,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004287/1.282, allocations: 174.6 kB / 0.5739 GB, free: 84.15 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003508/1.282, allocations: 103.5 kB / 0.574 GB, free: 84.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003933/1.286, allocations: 1.355 MB / 0.5754 GB, free: 83.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/1.286, allocations: 9.094 kB / 0.5754 GB, free: 83.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/1.286, allocations: 4.281 kB / 0.5754 GB, free: 83.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/1.286, allocations: 4.953 kB / 0.5754 GB, free: 83.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007885/1.294, allocations: 2.84 MB / 0.5781 GB, free: 82.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.082e-05/1.294, allocations: 3.875 kB / 0.5781 GB, free: 82.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/1.295, allocations: 138.2 kB / 0.5783 GB, free: 82.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/1.297, allocations: 390.8 kB / 0.5787 GB, free: 82.21 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/1.298, allocations: 27.42 kB / 0.5787 GB, free: 82.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009347/1.307, allocations: 8.663 MB / 0.5871 GB, free: 74.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/1.307, allocations: 64 / 0.5871 GB, free: 74.66 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004482/1.311, allocations: 2 MB / 0.5891 GB, free: 73.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007933/1.312, allocations: 264.4 kB / 0.5893 GB, free: 73.37 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/1.313, allocations: 27.23 kB / 0.5894 GB, free: 73.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/1.314, allocations: 50.38 kB / 0.5894 GB, free: 73.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/1.314, allocations: 73.2 kB / 0.5895 GB, free: 73.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.813e-05/1.314, allocations: 34.64 kB / 0.5895 GB, free: 73.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001101/1.315, allocations: 0.5598 MB / 0.5901 GB, free: 73.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.315, allocations: 0 / 0.5901 GB, free: 73.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004014/1.319, allocations: 0.6619 MB / 0.5907 GB, free: 72.99 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 8 (turboGen.generator.phi_el,turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.rotor.w,RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005088/1.324, allocations: 3.471 MB / 0.5941 GB, free: 70.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008861/1.333, allocations: 3.343 MB / 0.5974 GB, free: 68.72 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.333, allocations: 3.938 kB / 0.5974 GB, free: 68.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002471/1.336, allocations: 1.093 MB / 0.5984 GB, free: 67.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/1.337, allocations: 199.3 kB / 0.5986 GB, free: 67.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007465/1.345, allocations: 2.965 MB / 0.6015 GB, free: 66.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/1.346, allocations: 1.361 MB / 0.6029 GB, free: 65.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009598/1.347, allocations: 0.4928 MB / 0.6033 GB, free: 65.34 MB / 458.7 MB Notification: Performance of SimCode: time 1.523e-06/1.347, allocations: 0 / 0.6033 GB, free: 65.34 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 OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineInitialize.cpp:493:83: error: use of undeclared identifier 'turboGen_P_excitation_P_generator_P_par_P_V_nom_' SystemDefaultImplementation::setRealStartValue(_turboGen_P_excitation_P_V_nom_, turboGen_P_excitation_P_generator_P_par_P_V_nom_, false); ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineInitialize.cpp:502:84: error: use of undeclared identifier 'turboGen_P_excitation_P_generator_P_Vf_nom_' SystemDefaultImplementation::setRealStartValue(_turboGen_P_excitation_P_Vf_nom_, turboGen_P_excitation_P_generator_P_Vf_nom_, false); ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineInitialize.cpp:641:78: error: use of undeclared identifier 'turboGen_P_rotor_P_generator_P_par_P_S_nom_' SystemDefaultImplementation::setRealStartValue(_turboGen_P_rotor_P_P_nom_, turboGen_P_rotor_P_generator_P_par_P_S_nom_, false); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineFMU.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 3 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLineCalcHelperMain.o] Error 1