Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",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.001605/0.00161, allocations: 188.5 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.4 MB / 221.9 MB, free: 13.7 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.001066/0.001066, allocations: 98.86 kB / 270.2 MB, free: 13.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2563/0.2563, allocations: 38.05 MB / 356.6 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004456, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1089, allocations: 56.33 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.01196/0.1209, allocations: 7.48 MB / 486.6 MB, free: 10.42 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00764/0.1286, allocations: 3.173 MB / 489.8 MB, free: 7.238 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009303/0.1296, allocations: 47.69 kB / 489.8 MB, free: 7.191 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007662/0.1304, allocations: 210.7 kB / 490 MB, free: 6.984 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002426/0.1328, allocations: 0.5841 MB / 490.6 MB, free: 6.398 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.1344, allocations: 351.2 kB / 491 MB, free: 6.055 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.1362, allocations: 0.7299 MB / 491.7 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002059/0.1382, allocations: 0.9014 MB / 492.6 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009375/0.1392, allocations: 402.5 kB / 493 MB, free: 3.988 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008835/0.1401, allocations: 402.6 kB / 493.4 MB, free: 3.594 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.1402, allocations: 40 kB / 493.4 MB, free: 3.555 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.1413, allocations: 359.4 kB / 493.8 MB, free: 3.203 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005337/0.1418, allocations: 375.1 kB / 494.1 MB, free: 2.836 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003026/0.1421, allocations: 205.1 kB / 494.3 MB, free: 2.629 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.1439, allocations: 1.056 MB / 495.4 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.144, allocations: 0 / 495.4 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.144, allocations: 0 / 495.4 MB, free: 1.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.144, allocations: 0 / 495.4 MB, free: 1.57 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003214/0.1472, allocations: 1.113 MB / 496.5 MB, free: 416 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.1473, allocations: 8.031 kB / 496.5 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000326/0.1476, allocations: 139.5 kB / 496.7 MB, free: 260 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.1497, allocations: 222.6 kB / 496.9 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002426/0.1521, allocations: 0.6892 MB / 497.6 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.107e-05/0.1522, allocations: 65.98 kB / 497.6 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/0.1526, allocations: 107.8 kB / 497.7 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002688/0.1553, allocations: 1.08 MB / 498.8 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.409e-05/0.1554, allocations: 3.938 kB / 498.8 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.1556, allocations: 35.98 kB / 498.8 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003217/0.1559, allocations: 69.95 kB / 498.9 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002634/0.1586, allocations: 0.8587 MB / 499.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008598/0.1672, allocations: 4.005 MB / 0.492 GB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000991/0.1682, allocations: 431.8 kB / 0.4924 GB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.511e-05/0.1683, allocations: 4.5 kB / 0.4924 GB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.1684, allocations: 39 kB / 0.4924 GB, free: 8.332 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 3.758e-06/0.1684, allocations: 3.938 kB / 0.4924 GB, free: 8.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.004741/0.1731, allocations: 1.721 MB / 0.4941 GB, free: 6.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.1732, allocations: 89.61 kB / 0.4942 GB, free: 6.441 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.1743, allocations: 0.5821 MB / 0.4948 GB, free: 5.848 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.841e-05/0.1744, allocations: 41.69 kB / 0.4948 GB, free: 5.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004995/0.1749, allocations: 492.9 kB / 0.4953 GB, free: 5.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/0.1752, allocations: 185.4 kB / 0.4954 GB, free: 5.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/0.1753, allocations: 16 kB / 0.4955 GB, free: 5.113 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.1755, allocations: 338.8 kB / 0.4958 GB, free: 4.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006688/0.1762, allocations: 245.8 kB / 0.496 GB, free: 4.535 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008569/0.177, allocations: 472.9 kB / 0.4965 GB, free: 3.977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008584/0.1779, allocations: 338 kB / 0.4968 GB, free: 3.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1779, allocations: 0 / 0.4968 GB, free: 3.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003195/0.1811, allocations: 1.076 MB / 0.4978 GB, free: 2.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.1812, allocations: 8 kB / 0.4979 GB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002311/0.1835, allocations: 0.7998 MB / 0.4986 GB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.1847, allocations: 214.4 kB / 0.4988 GB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.1858, allocations: 159.7 kB / 0.499 GB, free: 1.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00835/0.1942, allocations: 5.323 MB / 0.5042 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008751/0.1951, allocations: 39.88 kB / 0.5042 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.281e-05/0.1952, allocations: 32 kB / 0.5043 GB, free: 11.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006339/0.1958, allocations: 309.5 kB / 0.5046 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.196, allocations: 67.16 kB / 0.5046 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.1976, allocations: 0.6088 MB / 0.5052 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.1976, allocations: 8 kB / 0.5052 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1976, allocations: 3.984 kB / 0.5052 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.1976, allocations: 0 / 0.5052 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003909/0.2015, allocations: 1.482 MB / 0.5067 GB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.2016, allocations: 4.031 kB / 0.5067 GB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.2028, allocations: 131.8 kB / 0.5068 GB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.2029, allocations: 4 kB / 0.5068 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.177e-05/0.2029, allocations: 12 kB / 0.5068 GB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-05/0.203, allocations: 7.984 kB / 0.5068 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.203, allocations: 7.938 kB / 0.5068 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.2051, allocations: 1.001 MB / 0.5078 GB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004185/0.2055, allocations: 188.1 kB / 0.508 GB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.2057, allocations: 19.97 kB / 0.508 GB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/0.2062, allocations: 19.98 kB / 0.508 GB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.2064, allocations: 40.28 kB / 0.5081 GB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.2064, allocations: 12 kB / 0.5081 GB, free: 7.434 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007905/0.2072, allocations: 423 kB / 0.5085 GB, free: 7.023 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2072, allocations: 0 / 0.5085 GB, free: 7.023 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001237/0.2085, allocations: 236 kB / 0.5087 GB, free: 6.793 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 simulation (54): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002806/0.2113, allocations: 1.984 MB / 0.5106 GB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.2139, allocations: 1.025 MB / 0.5116 GB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.214, allocations: 4 kB / 0.5116 GB, free: 3.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006447/0.2146, allocations: 259.6 kB / 0.5119 GB, free: 3.422 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2157, allocations: 131.3 kB / 0.512 GB, free: 3.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3068/0.5225, allocations: 10.12 MB / 0.5219 GB, free: 46.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009232/0.5235, allocations: 1.098 MB / 0.523 GB, free: 46.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007357/0.5243, allocations: 334 kB / 0.5233 GB, free: 45.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.382e-06/0.5243, allocations: 0 / 0.5233 GB, free: 45.98 MB / 362.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_TurbineGeneratorCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorFMU.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 generated. clang++ -shared -o PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.so OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorCalcHelperMain.o -L"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -L"/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Examples/AC3ph" -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgetri(BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgetriType&)': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator/./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorFunctions.cpp:136: undefined reference to `dgetri_' clang: error: linker command failed with exit code 1 (use -v to see invocation) PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_FMU.makefile:93: recipe for target 'PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu' failed make: *** [PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu] Error 1