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.001413/0.001412, allocations: 185.5 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 90.64 kB / 261.8 MB, free: 1.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.255/0.255, allocations: 38 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.528e-05, allocations: 4 kB / 409.9 MB, free: 35.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 56.32 MB / 466.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5148/0.6236, allocations: 123.4 MB / 0.5758 GB, free: 4.297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000351/0.624, allocations: 102.2 kB / 0.5759 GB, free: 4.242 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1862/0.8102, allocations: 42.36 MB / 0.6173 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.8103, allocations: 0 / 0.6173 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001314/0.8104, allocations: 32 kB / 0.6173 GB, free: 0.6055 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: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.00531/0.8157, allocations: 1.429 MB / 0.6187 GB, free: 15.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.8158, allocations: 12.03 kB / 0.6187 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002985/0.8188, allocations: 273.9 kB / 0.619 GB, free: 14.93 MB / 426.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.007241/0.8261, allocations: 1.723 MB / 0.6207 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.028e-05/0.8262, allocations: 44 kB / 0.6207 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004918/0.8267, allocations: 79.16 kB / 0.6208 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003536/0.8303, allocations: 1.134 MB / 0.6219 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004438/0.8347, allocations: 1.467 MB / 0.6233 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-05/0.8349, allocations: 11.84 kB / 0.6233 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.835, allocations: 3.984 kB / 0.6233 GB, free: 11.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002727/0.8353, allocations: 98.33 kB / 0.6234 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/0.8504, allocations: 5.748 MB / 0.629 GB, free: 4.988 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.8523, allocations: 0.7533 MB / 0.6298 GB, free: 4.188 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009958/0.8533, allocations: 424.9 kB / 0.6302 GB, free: 3.766 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.653e-05/0.8534, allocations: 8.781 kB / 0.6302 GB, free: 3.754 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/0.8535, allocations: 51.33 kB / 0.6302 GB, free: 3.695 MB / 426.7 MB Notification: Performance of pre-optimization done (n=75): time 3.266e-06/0.8535, allocations: 0 / 0.6302 GB, free: 3.695 MB / 426.7 MB Notification: Performance of matching and sorting (n=87): time 0.01019/0.8637, allocations: 3.128 MB / 0.6333 GB, free: 0.4961 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.8639, allocations: 170.9 kB / 0.6335 GB, free: 296 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.8652, allocations: 0.6094 MB / 0.634 GB, free: 15.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002345/0.8655, allocations: 29.73 kB / 0.6341 GB, free: 15.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005905/0.8661, allocations: 0.6568 MB / 0.6347 GB, free: 14.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/0.8665, allocations: 299.5 kB / 0.635 GB, free: 14.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-05/0.8666, allocations: 0 / 0.635 GB, free: 14.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.8668, allocations: 358.8 kB / 0.6353 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.868, allocations: 442.5 kB / 0.6358 GB, free: 13.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.8693, allocations: 0.7408 MB / 0.6365 GB, free: 13.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.8708, allocations: 0.5746 MB / 0.6371 GB, free: 12.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.8709, allocations: 4 kB / 0.6371 GB, free: 12.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00609/0.877, allocations: 1.73 MB / 0.6387 GB, free: 10.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001425/0.8784, allocations: 3.399 MB / 0.6421 GB, free: 7.023 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005363/0.8838, allocations: 1.433 MB / 0.6435 GB, free: 5.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00369/0.8875, allocations: 0.5834 MB / 0.644 GB, free: 4.973 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/0.891, allocations: 491.4 kB / 0.6445 GB, free: 4.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02356/0.9146, allocations: 19.79 MB / 0.6638 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.9163, allocations: 39.95 kB / 0.6639 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/0.9165, allocations: 47.98 kB / 0.6639 GB, free: 15.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.9165, allocations: 4 kB / 0.6639 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005848/0.9224, allocations: 1.643 MB / 0.6655 GB, free: 13.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005305/0.9277, allocations: 1.418 MB / 0.6669 GB, free: 12.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003323/0.9311, allocations: 0.5589 MB / 0.6675 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.9328, allocations: 227.6 kB / 0.6677 GB, free: 11.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/0.9548, allocations: 18.45 MB / 0.6857 GB, free: 8.016 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.956, allocations: 35.97 kB / 0.6857 GB, free: 7.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.9562, allocations: 55.92 kB / 0.6858 GB, free: 7.926 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turboGen.rotor.w_start:VARIABLE(unit = "rad/s" ) = turboGen.rotor.w_start "initial rotor angular velocity" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turboGen.rotor.H:VARIABLE(unit = "s" ) = turboGen.rotor.H "inertia constant turbine + generator" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: turboGen.rotor.w_nom:VARIABLE(unit = "rad/s" ) = turboGen.rotor.w_nom "nominal angular velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (118): * Single equations (assignments): 108 * 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 15} Notification: Performance of prepare postOptimizeDAE: time 0.0004636/0.9566, allocations: 137.8 kB / 0.6859 GB, free: 7.785 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003788/0.9604, allocations: 1.221 MB / 0.6871 GB, free: 6.543 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/0.9609, allocations: 94.86 kB / 0.6872 GB, free: 6.449 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.9649, allocations: 1.315 MB / 0.6885 GB, free: 5.109 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.147e-05/0.965, allocations: 16 kB / 0.6885 GB, free: 5.094 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.965, allocations: 4 kB / 0.6885 GB, free: 5.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.9651, allocations: 3.984 kB / 0.6885 GB, free: 5.086 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008115/0.9732, allocations: 2.691 MB / 0.6911 GB, free: 2.301 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.9732, allocations: 8.031 kB / 0.6911 GB, free: 2.293 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.9744, allocations: 139.8 kB / 0.6913 GB, free: 2.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/0.9765, allocations: 404 kB / 0.6916 GB, free: 1.746 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002167/0.9768, allocations: 23.97 kB / 0.6917 GB, free: 1.723 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3286/1.305, allocations: 8.415 MB / 0.6999 GB, free: 131.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.029e-05/1.305, allocations: 3.922 kB / 0.6999 GB, free: 131.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004774/1.31, allocations: 2.003 MB / 0.7018 GB, free: 131.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000905/1.311, allocations: 257.9 kB / 0.7021 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003099/1.311, allocations: 17.58 kB / 0.7021 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/1.313, allocations: 36.83 kB / 0.7021 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/1.313, allocations: 72.84 kB / 0.7022 GB, free: 131 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/1.313, allocations: 32.64 kB / 0.7022 GB, free: 131 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001011/1.314, allocations: 463.9 kB / 0.7027 GB, free: 130.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.01e-07/1.314, allocations: 0 / 0.7027 GB, free: 130.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004702/1.319, allocations: 0.5925 MB / 0.7033 GB, free: 130.9 MB / 490.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 (68): * Single equations (assignments): 62 * 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.005756/1.325, allocations: 3.47 MB / 0.7067 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009521/1.334, allocations: 3.323 MB / 0.7099 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/1.334, allocations: 1.094 kB / 0.7099 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003081/1.337, allocations: 1.106 MB / 0.711 GB, free: 127.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/1.339, allocations: 177.8 kB / 0.7112 GB, free: 127.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008864/1.348, allocations: 2.921 MB / 0.714 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/1.35, allocations: 1.371 MB / 0.7153 GB, free: 126.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.351, allocations: 0.492 MB / 0.7158 GB, free: 126.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.833e-06/1.351, allocations: 0.9375 kB / 0.7158 GB, free: 126.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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:502: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:511: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:650: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/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 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