Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.InitialSteadyState.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.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.InitialSteadyState,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyState",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.001634/0.001633, allocations: 187.1 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 2.097/2.097, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001156/0.001156, allocations: 86.88 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.2732/0.2732, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006437/0.0006443, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.117, allocations: 56.34 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.InitialSteadyState): time 0.007562/0.1247, allocations: 4.303 MB / 483.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004176/0.1289, allocations: 1.572 MB / 485 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.1294, allocations: 23.88 kB / 485 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.1297, allocations: 67.52 kB / 485.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009587/0.1307, allocations: 215.4 kB / 485.3 MB, free: 11.75 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1318, allocations: 231.4 kB / 485.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000691/0.1325, allocations: 303.7 kB / 485.8 MB, free: 11.22 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.1338, allocations: 0.5114 MB / 486.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005055/0.1343, allocations: 175.3 kB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005924/0.135, allocations: 255.3 kB / 486.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.68e-05/0.1351, allocations: 20 kB / 486.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.1356, allocations: 159.7 kB / 486.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003464/0.136, allocations: 195.6 kB / 487.1 MB, free: 9.898 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.1362, allocations: 113.5 kB / 487.2 MB, free: 9.781 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008694/0.1371, allocations: 0.491 MB / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1371, allocations: 0 / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1371, allocations: 0 / 487.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1371, allocations: 0 / 487.7 MB, free: 9.289 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001925/0.1391, allocations: 0.688 MB / 488.4 MB, free: 8.551 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.1391, allocations: 12.03 kB / 488.4 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.1393, allocations: 90.5 kB / 488.5 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009931/0.1403, allocations: 103.2 kB / 488.6 MB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1414, allocations: 394.1 kB / 489 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.1414, allocations: 25 kB / 489 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.1417, allocations: 51.91 kB / 489.1 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.1433, allocations: 0.6765 MB / 489.8 MB, free: 7.125 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.206e-05/0.1433, allocations: 7.984 kB / 489.8 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.086e-05/0.1434, allocations: 16 kB / 489.8 MB, free: 7.102 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003409/0.1438, allocations: 52.95 kB / 489.8 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.1456, allocations: 0.6635 MB / 490.5 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005862/0.1515, allocations: 2.429 MB / 492.9 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009816/0.1525, allocations: 357.7 kB / 493.3 MB, free: 3.469 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.805e-05/0.1526, allocations: 8.328 kB / 493.3 MB, free: 3.461 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.1526, allocations: 34.84 kB / 493.3 MB, free: 3.418 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.637e-06/0.1526, allocations: 0 / 493.3 MB, free: 3.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.003908/0.1566, allocations: 1.618 MB / 494.9 MB, free: 1.711 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.1567, allocations: 85.11 kB / 495 MB, free: 1.609 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004583/0.1571, allocations: 286.8 kB / 495.3 MB, free: 1.312 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.565e-05/0.1572, allocations: 29.7 kB / 495.3 MB, free: 1.277 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.1575, allocations: 306.1 kB / 495.6 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.1577, allocations: 161.6 kB / 495.8 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.1577, allocations: 8 kB / 495.8 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1579, allocations: 334.8 kB / 496.1 MB, free: 484 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005531/0.1585, allocations: 217 kB / 496.3 MB, free: 268 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007053/0.1592, allocations: 353.7 kB / 496.7 MB, free: 15.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.1599, allocations: 276.2 kB / 496.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.1599, allocations: 4 kB / 496.9 MB, free: 15.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002097/0.1621, allocations: 0.6925 MB / 497.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.1621, allocations: 8 kB / 497.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001485/0.1636, allocations: 0.5146 MB / 498.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005555/0.1642, allocations: 77.16 kB / 498.2 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007887/0.165, allocations: 111.8 kB / 498.3 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.1675, allocations: 1.617 MB / 500 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005562/0.1681, allocations: 31.94 kB / 500 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.027e-05/0.1682, allocations: 20 kB / 0.4883 GB, free: 12.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (54): * Single equations (assignments): 51 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004106/0.1686, allocations: 221.6 kB / 0.4885 GB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.1688, allocations: 35.58 kB / 0.4885 GB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.1703, allocations: 0.5514 MB / 0.4891 GB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.876e-05/0.1704, allocations: 23.92 kB / 0.4891 GB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1704, allocations: 0 / 0.4891 GB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.1704, allocations: 0 / 0.4891 GB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003216/0.1736, allocations: 1.188 MB / 0.4903 GB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.1737, allocations: 0 / 0.4903 GB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008108/0.1745, allocations: 83.98 kB / 0.4903 GB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/0.1745, allocations: 7.984 kB / 0.4903 GB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.867e-05/0.1746, allocations: 8 kB / 0.4904 GB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.261e-05/0.1746, allocations: 8 kB / 0.4904 GB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.1746, allocations: 3.938 kB / 0.4904 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.1768, allocations: 0.9596 MB / 0.4913 GB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.177, allocations: 112.7 kB / 0.4914 GB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.345e-05/0.1771, allocations: 11.98 kB / 0.4914 GB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.1775, allocations: 20.02 kB / 0.4914 GB, free: 8.988 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.89e-05/0.1777, allocations: 27.97 kB / 0.4915 GB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.047e-05/0.1777, allocations: 11.94 kB / 0.4915 GB, free: 8.949 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003051/0.178, allocations: 197.9 kB / 0.4917 GB, free: 8.758 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.178, allocations: 0 / 0.4917 GB, free: 8.758 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007563/0.1788, allocations: 120 kB / 0.4918 GB, free: 8.641 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (39): * Single equations (assignments): 36 * Array equations: 2 * 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.00272/0.1815, allocations: 1.799 MB / 0.4935 GB, free: 6.789 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.1834, allocations: 0.6532 MB / 0.4942 GB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.1834, allocations: 3.938 kB / 0.4942 GB, free: 6.117 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006871/0.1841, allocations: 268.6 kB / 0.4944 GB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006256/0.1848, allocations: 64.72 kB / 0.4945 GB, free: 5.793 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008791/0.1936, allocations: 5.838 MB / 0.5002 GB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007539/0.1944, allocations: 0.8905 MB / 0.5011 GB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.1949, allocations: 147.4 kB / 0.5012 GB, free: 14.74 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.1949, allocations: 0 / 0.5012 GB, free: 14.74 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_Introductory_InitialSteadyStateCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateFunctions.cpp:85:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateFunctions.cpp:144:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateFMU.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 2 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_InitialSteadyStateCalcHelperMain.o] Error 1