Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",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.001586/0.001589, allocations: 181.5 kB / 15.77 MB, free: 6.375 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.969/1.969, 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.001128/0.001128, allocations: 90.86 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.2563/0.2563, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006175/0.0006176, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1086, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006876/0.1156, allocations: 4.299 MB / 483.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003929/0.1195, allocations: 1.646 MB / 485.1 MB, free: 11.97 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003769/0.12, allocations: 27.81 kB / 485.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.1202, allocations: 71.5 kB / 485.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008791/0.1211, allocations: 227.3 kB / 485.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009304/0.1221, allocations: 239.4 kB / 485.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005897/0.1227, allocations: 307.8 kB / 485.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009526/0.1236, allocations: 434.5 kB / 486.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004323/0.1241, allocations: 179.3 kB / 486.5 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005511/0.1247, allocations: 271.2 kB / 486.8 MB, free: 10.22 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.653e-05/0.1248, allocations: 23.94 kB / 486.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005059/0.1253, allocations: 151.8 kB / 487 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002806/0.1256, allocations: 195.5 kB / 487.2 MB, free: 9.859 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.1257, allocations: 105.5 kB / 487.3 MB, free: 9.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000791/0.1265, allocations: 0.491 MB / 487.7 MB, free: 9.258 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.1266, allocations: 0 / 487.7 MB, free: 9.258 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1266, allocations: 0 / 487.7 MB, free: 9.258 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1266, allocations: 4 kB / 487.8 MB, free: 9.254 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001858/0.1285, allocations: 0.684 MB / 488.4 MB, free: 8.523 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1285, allocations: 8.031 kB / 488.4 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.1287, allocations: 98.45 kB / 488.5 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000944/0.1296, allocations: 99.27 kB / 488.6 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009155/0.1306, allocations: 394.1 kB / 489 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.1306, allocations: 32.98 kB / 489.1 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.1309, allocations: 43.98 kB / 489.1 MB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.1324, allocations: 0.6875 MB / 489.8 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.1325, allocations: 0 / 489.8 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.413e-05/0.1325, allocations: 19.94 kB / 489.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000365/0.1329, allocations: 72.89 kB / 489.9 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.1346, allocations: 0.6557 MB / 490.5 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005716/0.1404, allocations: 2.65 MB / 493.2 MB, free: 3.535 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008274/0.1412, allocations: 317.3 kB / 493.5 MB, free: 3.207 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.656e-05/0.1413, allocations: 8 kB / 493.5 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.1413, allocations: 34.56 kB / 493.5 MB, free: 3.156 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.216e-06/0.1414, allocations: 0 / 493.5 MB, free: 3.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.003216/0.1446, allocations: 1.463 MB / 495 MB, free: 1.605 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/0.1447, allocations: 85.06 kB / 495.1 MB, free: 1.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004443/0.1451, allocations: 291.2 kB / 495.4 MB, free: 1.207 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.1452, allocations: 29.7 kB / 495.4 MB, free: 1.172 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/0.1454, allocations: 306 kB / 495.7 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.1456, allocations: 138 kB / 495.8 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.1456, allocations: 8 kB / 495.8 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1458, allocations: 330.8 kB / 496.2 MB, free: 404 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004486/0.1463, allocations: 188.9 kB / 496.3 MB, free: 216 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005953/0.1469, allocations: 325.3 kB / 496.7 MB, free: 15.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005945/0.1475, allocations: 243.8 kB / 496.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1475, allocations: 0 / 496.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001945/0.1494, allocations: 0.6586 MB / 497.6 MB, free: 14.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.1495, allocations: 7.984 kB / 497.6 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001353/0.1509, allocations: 484 kB / 498 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007097/0.1516, allocations: 121.6 kB / 498.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005713/0.1522, allocations: 87.77 kB / 498.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003985/0.1562, allocations: 3.057 MB / 0.4895 GB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.1567, allocations: 19.98 kB / 0.4896 GB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.294e-05/0.1567, allocations: 20 kB / 0.4896 GB, free: 10.87 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 (45): * Single equations (assignments): 41 * 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: 2 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003725/0.1571, allocations: 213.6 kB / 0.4898 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.1572, allocations: 35.58 kB / 0.4898 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.1584, allocations: 476.6 kB / 0.4903 GB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.651e-05/0.1584, allocations: 15.98 kB / 0.4903 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.1585, allocations: 0 / 0.4903 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.1585, allocations: 0 / 0.4903 GB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.1608, allocations: 1.019 MB / 0.4913 GB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.1608, allocations: 64 / 0.4913 GB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000661/0.1615, allocations: 76.17 kB / 0.4914 GB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/0.1615, allocations: 4 kB / 0.4914 GB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.1616, allocations: 4 kB / 0.4914 GB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.1616, allocations: 4 kB / 0.4914 GB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1616, allocations: 0 / 0.4914 GB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.1632, allocations: 0.7796 MB / 0.4921 GB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.1635, allocations: 140.7 kB / 0.4923 GB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.816e-05/0.1636, allocations: 11.98 kB / 0.4923 GB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.1639, allocations: 15.98 kB / 0.4923 GB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/0.164, allocations: 23.92 kB / 0.4923 GB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.1641, allocations: 12 kB / 0.4923 GB, free: 7.914 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003111/0.1644, allocations: 199.1 kB / 0.4925 GB, free: 7.715 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1644, allocations: 0 / 0.4925 GB, free: 7.715 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007203/0.1651, allocations: 112 kB / 0.4926 GB, free: 7.605 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.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 (30): * Single equations (assignments): 27 * 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.002073/0.1672, allocations: 1.562 MB / 0.4942 GB, free: 5.996 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.1689, allocations: 0.7011 MB / 0.4948 GB, free: 5.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1689, allocations: 3.938 kB / 0.4948 GB, free: 5.266 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004615/0.1694, allocations: 208.3 kB / 0.495 GB, free: 5.062 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.1699, allocations: 61.31 kB / 0.4951 GB, free: 5.004 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/0.1777, allocations: 5.712 MB / 0.5007 GB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006527/0.1784, allocations: 0.8904 MB / 0.5015 GB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.1788, allocations: 147.4 kB / 0.5017 GB, free: 14.08 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/0.1788, allocations: 0 / 0.5017 GB, free: 14.08 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_Elementary_SourceCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceFunctions.cpp:85:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceFunctions.cpp:144:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceFMU.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_AC3ph_Elementary_SourceCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_SourceCalcHelperMain.o] Error 1