Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.001602/0.001609, allocations: 183.2 kB / 15.77 MB, free: 6.379 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/2, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001118/0.001118, allocations: 90.91 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2533/0.2533, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004684, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1086, allocations: 56.33 MB / 479.1 MB, free: 1.926 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.01037/0.1191, allocations: 6.104 MB / 485.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006674/0.1258, allocations: 2.772 MB / 488 MB, free: 9.012 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008018/0.1267, allocations: 43.75 kB / 488.1 MB, free: 8.969 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009822/0.1277, allocations: 222.8 kB / 488.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001987/0.1297, allocations: 498.5 kB / 488.8 MB, free: 8.262 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1308, allocations: 255.5 kB / 489 MB, free: 8.012 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001601/0.1324, allocations: 0.6631 MB / 489.7 MB, free: 7.348 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001508/0.1339, allocations: 0.7755 MB / 490.5 MB, free: 6.539 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008255/0.1348, allocations: 362.7 kB / 490.8 MB, free: 6.184 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007863/0.1356, allocations: 366.7 kB / 491.2 MB, free: 5.824 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.1357, allocations: 40 kB / 491.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000784/0.1365, allocations: 267.5 kB / 491.5 MB, free: 5.523 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003991/0.1369, allocations: 259.3 kB / 491.7 MB, free: 5.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.1372, allocations: 181.3 kB / 491.9 MB, free: 5.086 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.1389, allocations: 1.06 MB / 493 MB, free: 4.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.1389, allocations: 0 / 493 MB, free: 4.023 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1389, allocations: 0 / 493 MB, free: 4.023 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.139, allocations: 0 / 493 MB, free: 4.023 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002994/0.142, allocations: 1 MB / 494 MB, free: 2.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.142, allocations: 12.03 kB / 494 MB, free: 2.961 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002319/0.1423, allocations: 122.5 kB / 494.1 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009445/0.1432, allocations: 130.9 kB / 494.2 MB, free: 2.703 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.145, allocations: 0.6466 MB / 494.9 MB, free: 2.012 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.1452, allocations: 87.67 kB / 494.9 MB, free: 1.922 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.1454, allocations: 71.91 kB / 495 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.1477, allocations: 0.9452 MB / 496 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.1478, allocations: 0 / 496 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.1479, allocations: 31.95 kB / 496 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002006/0.1481, allocations: 57.28 kB / 496 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.1504, allocations: 0.778 MB / 496.8 MB, free: 15.99 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008131/0.1585, allocations: 3.879 MB / 0.489 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.1599, allocations: 0.5129 MB / 0.4895 GB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-05/0.16, allocations: 12.62 kB / 0.4895 GB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.667e-05/0.1601, allocations: 42.5 kB / 0.4895 GB, free: 11.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 3.728e-06/0.1601, allocations: 4 kB / 0.4895 GB, free: 11.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.01929/0.1794, allocations: 3.964 MB / 0.4934 GB, free: 7.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/0.1795, allocations: 111.2 kB / 0.4935 GB, free: 6.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.1805, allocations: 0.526 MB / 0.494 GB, free: 6.438 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.769e-05/0.1806, allocations: 29.7 kB / 0.494 GB, free: 6.402 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.181, allocations: 425.6 kB / 0.4945 GB, free: 5.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002589/0.1813, allocations: 205.1 kB / 0.4946 GB, free: 5.777 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.772e-05/0.1813, allocations: 8 kB / 0.4947 GB, free: 5.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1815, allocations: 342.8 kB / 0.495 GB, free: 5.426 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.1824, allocations: 285.9 kB / 0.4953 GB, free: 5.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.1834, allocations: 0.4994 MB / 0.4957 GB, free: 4.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.1844, allocations: 368.6 kB / 0.4961 GB, free: 4.184 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.1845, allocations: 4 kB / 0.4961 GB, free: 4.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005758/0.1902, allocations: 1.506 MB / 0.4976 GB, free: 2.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.1903, allocations: 12 kB / 0.4976 GB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.1903, allocations: 12.14 kB / 0.4976 GB, free: 2.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/0.1932, allocations: 491.8 kB / 0.4981 GB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008032/0.194, allocations: 103.8 kB / 0.4982 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/0.212, allocations: 10.06 MB / 0.508 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000941/0.213, allocations: 31.94 kB / 0.508 GB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.631e-05/0.2131, allocations: 32 kB / 0.508 GB, free: 7.172 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006813/0.2138, allocations: 309.6 kB / 0.5083 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.214, allocations: 63.25 kB / 0.5084 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005359/0.2194, allocations: 1.394 MB / 0.5098 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.2195, allocations: 8 kB / 0.5098 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.2195, allocations: 4 kB / 0.5098 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.2195, allocations: 3.984 kB / 0.5098 GB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007655/0.2272, allocations: 2.356 MB / 0.5121 GB, free: 2.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.2272, allocations: 0 / 0.5121 GB, free: 2.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/0.2278, allocations: 51.97 kB / 0.5121 GB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002627/0.2305, allocations: 463.9 kB / 0.5126 GB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.384e-05/0.2306, allocations: 12 kB / 0.5126 GB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3147/0.5454, allocations: 9.751 MB / 0.5221 GB, free: 45.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.5454, allocations: 6.594 kB / 0.5221 GB, free: 45.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006165/0.5516, allocations: 2.003 MB / 0.5241 GB, free: 44.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004751/0.5521, allocations: 198.3 kB / 0.5243 GB, free: 44.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.5523, allocations: 16.55 kB / 0.5243 GB, free: 44.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006915/0.553, allocations: 24.48 kB / 0.5243 GB, free: 44.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.5533, allocations: 59.03 kB / 0.5243 GB, free: 44.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.933e-05/0.5534, allocations: 21.55 kB / 0.5244 GB, free: 44.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006844/0.5541, allocations: 367.5 kB / 0.5247 GB, free: 44.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5541, allocations: 1.188 kB / 0.5247 GB, free: 44.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001568/0.5557, allocations: 252.7 kB / 0.525 GB, free: 44.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (30): * Single equations (assignments): 24 * 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: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.006731/0.5624, allocations: 2.928 MB / 0.5278 GB, free: 42.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003358/0.5658, allocations: 1.448 MB / 0.5292 GB, free: 41.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.5659, allocations: 1.75 kB / 0.5292 GB, free: 41.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002379/0.5683, allocations: 1.096 MB / 0.5303 GB, free: 40.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.5698, allocations: 165.3 kB / 0.5305 GB, free: 40.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.5854, allocations: 10.23 MB / 0.5405 GB, free: 32.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007948/0.5863, allocations: 1.067 MB / 0.5415 GB, free: 31.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005243/0.5868, allocations: 269.4 kB / 0.5418 GB, free: 31.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5868, allocations: 0 / 0.5418 GB, free: 31.75 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_AC1ph_DC_Drives_BLDCcharSpeedCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeedCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeedCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeedFMU.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_AC1ph_DC_Drives_BLDCcharSpeed.so OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeedCalcHelperMain.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/AC1ph_DC" -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeedCalcHelperMain.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.AC1ph_DC.Drives.BLDCcharSpeed/./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeedFunctions.cpp:133: undefined reference to `dgetri_' clang: error: linker command failed with exit code 1 (use -v to see invocation) PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_FMU.makefile:93: recipe for target 'PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu' failed make: *** [PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu] Error 1