Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002151/0.002151, allocations: 185.5 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.107/2.107, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001101, allocations: 88.5 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2876/0.2876, allocations: 37.97 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.181e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 56.31 MB / 473.2 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5655/0.6715, allocations: 124 MB / 0.5832 GB, free: 11.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.6719, allocations: 95.88 kB / 0.5833 GB, free: 11.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1939/0.8659, allocations: 42.74 MB / 0.6251 GB, free: 232 kB / 458.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.8659, allocations: 0 / 0.6251 GB, free: 232 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001223/0.8661, allocations: 28 kB / 0.6251 GB, free: 204 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.005486/0.8716, allocations: 1.43 MB / 0.6265 GB, free: 14.72 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.8716, allocations: 15.97 kB / 0.6265 GB, free: 14.7 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006957/0.8724, allocations: 198.3 kB / 0.6267 GB, free: 14.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002984/0.8754, allocations: 273.9 kB / 0.627 GB, free: 14.23 MB / 474.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.007441/0.8828, allocations: 1.732 MB / 0.6287 GB, free: 12.46 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.883, allocations: 90.34 kB / 0.6287 GB, free: 12.37 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00051/0.8835, allocations: 127.9 kB / 0.6289 GB, free: 12.24 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004694/0.8882, allocations: 1.629 MB / 0.6305 GB, free: 10.54 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.865e-05/0.8884, allocations: 11.86 kB / 0.6305 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/0.8887, allocations: 51.98 kB / 0.6305 GB, free: 10.47 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003611/0.8891, allocations: 90.38 kB / 0.6306 GB, free: 10.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008/0.8971, allocations: 1.349 MB / 0.6319 GB, free: 9.027 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01839/0.9156, allocations: 6.134 MB / 0.6379 GB, free: 2.559 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.9176, allocations: 0.679 MB / 0.6386 GB, free: 1.852 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.9187, allocations: 432.9 kB / 0.639 GB, free: 1.422 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.9188, allocations: 20.77 kB / 0.639 GB, free: 1.402 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.9189, allocations: 43.34 kB / 0.6391 GB, free: 1.352 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 3.296e-06/0.9189, allocations: 0 / 0.6391 GB, free: 1.352 MB / 474.7 MB Notification: Performance of matching and sorting (n=83): time 0.3374/1.256, allocations: 3.522 MB / 0.6425 GB, free: 122.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/1.256, allocations: 165.1 kB / 0.6427 GB, free: 122.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/1.258, allocations: 0.7392 MB / 0.6434 GB, free: 122.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002565/1.258, allocations: 45.2 kB / 0.6434 GB, free: 122.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005393/1.259, allocations: 0.6331 MB / 0.644 GB, free: 121.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/1.26, allocations: 302.2 kB / 0.6443 GB, free: 121.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.26, allocations: 24.19 kB / 0.6443 GB, free: 121.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/1.26, allocations: 360 kB / 0.6447 GB, free: 121.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/1.261, allocations: 470 kB / 0.6451 GB, free: 121.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/1.263, allocations: 0.7597 MB / 0.6459 GB, free: 121.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/1.265, allocations: 0.591 MB / 0.6465 GB, free: 121.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.079e-05/1.265, allocations: 7.703 kB / 0.6465 GB, free: 121.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.006579/1.271, allocations: 1.828 MB / 0.6482 GB, free: 120.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007724/1.272, allocations: 3.226 MB / 0.6514 GB, free: 117.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005566/1.278, allocations: 1.483 MB / 0.6528 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003626/1.282, allocations: 0.5697 MB / 0.6534 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003691/1.285, allocations: 0.4937 MB / 0.6539 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02066/1.306, allocations: 19.85 MB / 0.6733 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/1.308, allocations: 80.53 kB / 0.6733 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/1.308, allocations: 49.94 kB / 0.6734 GB, free: 101.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/1.308, allocations: 3.688 kB / 0.6734 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006343/1.314, allocations: 1.757 MB / 0.6751 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005482/1.32, allocations: 1.474 MB / 0.6766 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003335/1.323, allocations: 0.534 MB / 0.6771 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001919/1.325, allocations: 243.7 kB / 0.6773 GB, free: 100.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/1.344, allocations: 18.5 MB / 0.6954 GB, free: 84.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/1.345, allocations: 57.11 kB / 0.6954 GB, free: 84.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/1.345, allocations: 51.56 kB / 0.6955 GB, free: 84.63 MB / 474.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 (128): * Single equations (assignments): 118 * 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.0004418/1.345, allocations: 173.1 kB / 0.6956 GB, free: 84.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000397/1.346, allocations: 103.6 kB / 0.6957 GB, free: 84.42 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003857/1.35, allocations: 1.351 MB / 0.6971 GB, free: 83.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/1.35, allocations: 8.094 kB / 0.6971 GB, free: 83.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.35, allocations: 11.89 kB / 0.6971 GB, free: 83.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/1.35, allocations: 7.641 kB / 0.6971 GB, free: 83.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007526/1.357, allocations: 2.823 MB / 0.6998 GB, free: 82.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.357, allocations: 352 / 0.6998 GB, free: 82.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/1.359, allocations: 137.1 kB / 0.7 GB, free: 82.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001885/1.36, allocations: 386.5 kB / 0.7003 GB, free: 82.43 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001776/1.361, allocations: 31.36 kB / 0.7004 GB, free: 82.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009664/1.37, allocations: 8.641 MB / 0.7088 GB, free: 74.88 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.37, allocations: 7.719 kB / 0.7088 GB, free: 74.88 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/1.375, allocations: 1.999 MB / 0.7108 GB, free: 73.77 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008181/1.376, allocations: 261.7 kB / 0.711 GB, free: 73.58 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/1.376, allocations: 27.39 kB / 0.711 GB, free: 73.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/1.377, allocations: 53.86 kB / 0.7111 GB, free: 73.56 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/1.378, allocations: 72.55 kB / 0.7112 GB, free: 73.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.139e-05/1.378, allocations: 29.64 kB / 0.7112 GB, free: 73.53 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001076/1.379, allocations: 0.5673 MB / 0.7118 GB, free: 73.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.379, allocations: 0 / 0.7118 GB, free: 73.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003779/1.383, allocations: 0.6549 MB / 0.7124 GB, free: 73.21 MB / 474.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 (65): * Single equations (assignments): 59 * 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.005247/1.388, allocations: 3.457 MB / 0.7158 GB, free: 70.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008989/1.397, allocations: 3.465 MB / 0.7192 GB, free: 68.82 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.397, allocations: 0 / 0.7192 GB, free: 68.82 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/1.399, allocations: 1.124 MB / 0.7202 GB, free: 68.04 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/1.401, allocations: 209.7 kB / 0.7204 GB, free: 67.97 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008163/1.409, allocations: 2.983 MB / 0.7234 GB, free: 66.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/1.411, allocations: 1.36 MB / 0.7247 GB, free: 65.78 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009664/1.412, allocations: 0.4897 MB / 0.7252 GB, free: 65.39 MB / 474.7 MB Notification: Performance of SimCode: time 1.833e-06/1.412, allocations: 4 kB / 0.7252 GB, free: 65.39 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=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/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:494: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:503: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:642: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/jenkins1/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