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.002477/0.002476, allocations: 184 kB / 15.76 MB, free: 6.363 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.093/2.093, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001175/0.001175, allocations: 102.8 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2758/0.2758, allocations: 38.06 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004932/0.0004933, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1225, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5589/0.6814, allocations: 124.1 MB / 0.5891 GB, free: 7.699 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004264/0.6818, allocations: 101.1 kB / 0.5892 GB, free: 7.645 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1939/0.8758, allocations: 42.77 MB / 0.631 GB, free: 2.977 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.8758, allocations: 0 / 0.631 GB, free: 2.977 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001815/0.876, allocations: 28 kB / 0.631 GB, free: 2.949 MB / 426.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.007066/0.8831, allocations: 1.601 MB / 0.6326 GB, free: 1.395 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.8832, allocations: 8.031 kB / 0.6326 GB, free: 1.387 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009534/0.8841, allocations: 196.6 kB / 0.6328 GB, free: 1.262 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003142/0.8873, allocations: 277.9 kB / 0.633 GB, free: 0.9883 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.007659/0.895, allocations: 1.745 MB / 0.6347 GB, free: 15.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.8952, allocations: 92.59 kB / 0.6348 GB, free: 15.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006928/0.8959, allocations: 131.5 kB / 0.635 GB, free: 15.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005309/0.9013, allocations: 1.678 MB / 0.6366 GB, free: 14.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.605e-05/0.9014, allocations: 11.33 kB / 0.6366 GB, free: 14.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002124/0.9016, allocations: 50.05 kB / 0.6367 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002471/0.9019, allocations: 95.94 kB / 0.6367 GB, free: 14.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00523/0.9071, allocations: 1.42 MB / 0.6381 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01737/0.9246, allocations: 6.13 MB / 0.6441 GB, free: 6.441 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/0.9268, allocations: 0.7211 MB / 0.6448 GB, free: 5.691 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001166/0.927, allocations: 12.7 kB / 0.6448 GB, free: 5.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.183e-05/0.9271, allocations: 47.2 kB / 0.6449 GB, free: 5.625 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 4.268e-06/0.9271, allocations: 0 / 0.6449 GB, free: 5.625 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.01775/0.9449, allocations: 4.464 MB / 0.6492 GB, free: 1.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.945, allocations: 162.9 kB / 0.6494 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/0.9468, allocations: 0.7547 MB / 0.6501 GB, free: 48 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000273/0.9471, allocations: 33.7 kB / 0.6502 GB, free: 8 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006274/0.9477, allocations: 0.6414 MB / 0.6508 GB, free: 15.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004803/0.9482, allocations: 299.8 kB / 0.6511 GB, free: 15.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.9484, allocations: 24 kB / 0.6511 GB, free: 15.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.9486, allocations: 366.7 kB / 0.6514 GB, free: 14.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.9501, allocations: 0.4945 MB / 0.6519 GB, free: 14.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.952, allocations: 0.7893 MB / 0.6527 GB, free: 13.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001903/0.954, allocations: 0.6277 MB / 0.6533 GB, free: 12.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/0.954, allocations: 7.938 kB / 0.6533 GB, free: 12.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.007037/0.9611, allocations: 1.898 MB / 0.6552 GB, free: 10.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001533/0.9627, allocations: 3.231 MB / 0.6583 GB, free: 7.219 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006214/0.9689, allocations: 1.553 MB / 0.6598 GB, free: 5.652 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003791/0.9728, allocations: 0.5622 MB / 0.6604 GB, free: 5.074 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003591/0.9764, allocations: 0.4955 MB / 0.6609 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02605/1.003, allocations: 20.19 MB / 0.6806 GB, free: 15.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/1.004, allocations: 71.86 kB / 0.6807 GB, free: 15.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002161/1.005, allocations: 47.98 kB / 0.6807 GB, free: 14.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/1.005, allocations: 6.969 kB / 0.6807 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006591/1.011, allocations: 1.776 MB / 0.6825 GB, free: 13.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005693/1.017, allocations: 1.495 MB / 0.6839 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00333/1.02, allocations: 0.5309 MB / 0.6844 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/1.022, allocations: 239.6 kB / 0.6847 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02418/1.046, allocations: 18.76 MB / 0.703 GB, free: 6.867 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/1.048, allocations: 63.92 kB / 0.703 GB, free: 6.805 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/1.048, allocations: 44 kB / 0.7031 GB, free: 6.762 MB / 0.4948 GB 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 () * Number of clocked 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.001347/1.049, allocations: 0.5083 MB / 0.7036 GB, free: 6.242 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003786/1.05, allocations: 102.8 kB / 0.7037 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00479/1.054, allocations: 1.417 MB / 0.7051 GB, free: 4.699 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/1.054, allocations: 11.95 kB / 0.7051 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/1.054, allocations: 8 kB / 0.7051 GB, free: 4.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/1.054, allocations: 3.984 kB / 0.7051 GB, free: 4.676 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009323/1.064, allocations: 2.898 MB / 0.7079 GB, free: 1.672 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/1.064, allocations: 4 kB / 0.7079 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/1.065, allocations: 136.1 kB / 0.7081 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002086/1.067, allocations: 399.7 kB / 0.7084 GB, free: 1.129 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/1.067, allocations: 35.94 kB / 0.7085 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.353/1.42, allocations: 8.754 MB / 0.717 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/1.42, allocations: 2.812 kB / 0.717 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005695/1.426, allocations: 2.093 MB / 0.7191 GB, free: 141 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008076/1.427, allocations: 261 kB / 0.7193 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/1.427, allocations: 30.58 kB / 0.7193 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/1.428, allocations: 47.28 kB / 0.7194 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/1.429, allocations: 78 kB / 0.7195 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.123e-05/1.429, allocations: 25.77 kB / 0.7195 GB, free: 140.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001277/1.43, allocations: 0.5807 MB / 0.7201 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/1.43, allocations: 0 / 0.7201 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003749/1.434, allocations: 0.6561 MB / 0.7207 GB, free: 140.8 MB / 0.4948 GB 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: 2 (system.initime,$cse5) * Number of discrete states: 0 () * Number of clocked 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.006324/1.44, allocations: 3.562 MB / 0.7242 GB, free: 139 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01018/1.45, allocations: 3.554 MB / 0.7276 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.45, allocations: 1.375 kB / 0.7276 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003075/1.454, allocations: 1.175 MB / 0.7288 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/1.456, allocations: 210.2 kB / 0.729 GB, free: 137.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/1.468, allocations: 10.07 MB / 0.7388 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/1.469, allocations: 1.368 MB / 0.7402 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009822/1.47, allocations: 0.4901 MB / 0.7406 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.172e-06/1.47, allocations: 0 / 0.7406 GB, free: 129.1 MB / 0.4948 GB 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:477: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:486: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:625: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