Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",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.00153/0.001533, allocations: 186.6 kB / 15.77 MB, free: 5.984 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.959/1.959, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001137/0.001137, allocations: 94.86 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.2618/0.2618, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004761/0.0004763, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 56.34 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01539/0.1235, allocations: 9.549 MB / 488.7 MB, free: 8.352 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009649/0.1332, allocations: 3.844 MB / 492.5 MB, free: 4.496 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.1346, allocations: 63.56 kB / 492.6 MB, free: 4.434 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.1359, allocations: 326.1 kB / 492.9 MB, free: 4.113 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003366/0.1393, allocations: 0.7204 MB / 493.6 MB, free: 3.391 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.1415, allocations: 475 kB / 494.1 MB, free: 2.926 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002337/0.1439, allocations: 0.9288 MB / 495 MB, free: 1.996 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003187/0.1471, allocations: 1.307 MB / 496.3 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.1485, allocations: 0.5177 MB / 496.8 MB, free: 120 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001241/0.1497, allocations: 0.5685 MB / 497.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.1499, allocations: 56 kB / 497.5 MB, free: 15.49 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.1512, allocations: 403.3 kB / 497.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007637/0.1519, allocations: 0.5339 MB / 498.4 MB, free: 14.56 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.1524, allocations: 265 kB / 498.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002423/0.1549, allocations: 1.422 MB / 0.4884 GB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1549, allocations: 0 / 0.4884 GB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1549, allocations: 0 / 0.4884 GB, free: 12.87 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.575e-05/0.1549, allocations: 0 / 0.4884 GB, free: 12.87 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004237/0.1592, allocations: 1.403 MB / 0.4897 GB, free: 11.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.1593, allocations: 8.031 kB / 0.4897 GB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003689/0.1596, allocations: 177.5 kB / 0.4899 GB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002654/0.1623, allocations: 286.1 kB / 0.4902 GB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003197/0.1655, allocations: 0.8743 MB / 0.491 GB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.1657, allocations: 86.05 kB / 0.4911 GB, free: 9.938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006325/0.1663, allocations: 139.9 kB / 0.4912 GB, free: 9.801 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004064/0.1704, allocations: 1.47 MB / 0.4927 GB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.315e-05/0.1705, allocations: 11.84 kB / 0.4927 GB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001639/0.1707, allocations: 43.98 kB / 0.4927 GB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005457/0.1713, allocations: 102.2 kB / 0.4928 GB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003335/0.1746, allocations: 1.242 MB / 0.494 GB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.012/0.1866, allocations: 5.668 MB / 0.4996 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.1882, allocations: 0.5976 MB / 0.5002 GB, free: 236 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.161e-05/0.1883, allocations: 8.609 kB / 0.5002 GB, free: 228 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.1883, allocations: 43.12 kB / 0.5002 GB, free: 176 kB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 4.358e-06/0.1884, allocations: 0 / 0.5002 GB, free: 176 kB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.01169/0.2001, allocations: 3.522 MB / 0.5037 GB, free: 12.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.269e-05/0.2002, allocations: 89.72 kB / 0.5037 GB, free: 12.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.2015, allocations: 0.7274 MB / 0.5044 GB, free: 11.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.611e-05/0.2016, allocations: 41.64 kB / 0.5045 GB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/0.2021, allocations: 0.6021 MB / 0.5051 GB, free: 11.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.2025, allocations: 272.2 kB / 0.5053 GB, free: 10.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/0.2026, allocations: 20 kB / 0.5054 GB, free: 10.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.2027, allocations: 350.8 kB / 0.5057 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.2038, allocations: 389.7 kB / 0.5061 GB, free: 9.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.2051, allocations: 0.6535 MB / 0.5067 GB, free: 9.211 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.2063, allocations: 0.5026 MB / 0.5072 GB, free: 8.711 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.2064, allocations: 0 / 0.5072 GB, free: 8.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005495/0.2119, allocations: 1.64 MB / 0.5088 GB, free: 7.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.024e-05/0.2119, allocations: 15.89 kB / 0.5088 GB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004617/0.2166, allocations: 1.291 MB / 0.5101 GB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003294/0.2199, allocations: 0.5769 MB / 0.5106 GB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.221, allocations: 183.7 kB / 0.5108 GB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3146/0.5356, allocations: 9.62 MB / 0.5202 GB, free: 47.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.5369, allocations: 47.23 kB / 0.5202 GB, free: 47.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.537, allocations: 41.58 kB / 0.5203 GB, free: 47.8 MB / 362.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 90 * 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: 4 * Mixed (continuous/discrete) equation systems: 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 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0008161/0.5378, allocations: 382.1 kB / 0.5207 GB, free: 47.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.538, allocations: 93.81 kB / 0.5207 GB, free: 47.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003733/0.5418, allocations: 1.246 MB / 0.522 GB, free: 47.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.5418, allocations: 10.38 kB / 0.522 GB, free: 47.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.5418, allocations: 5.078 kB / 0.522 GB, free: 47.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.901e-05/0.5419, allocations: 5.062 kB / 0.522 GB, free: 47.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007045/0.5489, allocations: 2.393 MB / 0.5243 GB, free: 46.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.549, allocations: 8.938 kB / 0.5243 GB, free: 46.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009538/0.55, allocations: 109.2 kB / 0.5244 GB, free: 46.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.5519, allocations: 386.7 kB / 0.5248 GB, free: 45.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.5521, allocations: 22.81 kB / 0.5248 GB, free: 45.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/0.5626, allocations: 8.581 MB / 0.5332 GB, free: 38.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.5626, allocations: 3.875 kB / 0.5332 GB, free: 38.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004596/0.5672, allocations: 1.764 MB / 0.5349 GB, free: 37.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006666/0.568, allocations: 233 kB / 0.5351 GB, free: 37.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.5682, allocations: 27.41 kB / 0.5352 GB, free: 37.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008052/0.569, allocations: 29.3 kB / 0.5352 GB, free: 37.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.5693, allocations: 57.28 kB / 0.5353 GB, free: 37.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.58e-05/0.5694, allocations: 24.14 kB / 0.5353 GB, free: 37.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009467/0.5703, allocations: 0.5023 MB / 0.5358 GB, free: 37.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5703, allocations: 0 / 0.5358 GB, free: 37.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002153/0.5725, allocations: 363.2 kB / 0.5361 GB, free: 37.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * 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.004851/0.5774, allocations: 2.914 MB / 0.539 GB, free: 35.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.5811, allocations: 1.567 MB / 0.5405 GB, free: 34.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.5812, allocations: 0 / 0.5405 GB, free: 34.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002328/0.5835, allocations: 1.091 MB / 0.5416 GB, free: 33.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.5851, allocations: 179.4 kB / 0.5417 GB, free: 33.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/0.6033, allocations: 13.46 MB / 0.5549 GB, free: 22.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.6043, allocations: 1.281 MB / 0.5561 GB, free: 21.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008139/0.6052, allocations: 443.3 kB / 0.5565 GB, free: 20.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.784e-06/0.6052, allocations: 0 / 0.5565 GB, free: 20.71 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_TurbineGeneratorLineCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLineCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLineCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLineFMU.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_TurbineGeneratorLine.so OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLineCalcHelperMain.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_TurbineGeneratorLineCalcHelperMain.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.TurbineGeneratorLine/./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLineFunctions.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_TurbineGeneratorLine_FMU.makefile:93: recipe for target 'PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu' failed make: *** [PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu] Error 1