Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchron",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.001612/0.001617, allocations: 182.6 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 2.029/2.029, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001088/0.001088, allocations: 90.88 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.2683/0.2683, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004717/0.0004718, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1148, allocations: 56.32 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.00718/0.122, allocations: 4.319 MB / 483.4 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003732/0.1258, allocations: 1.56 MB / 485 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003014/0.1261, allocations: 27.81 kB / 485 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.1264, allocations: 67.56 kB / 485.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007837/0.1272, allocations: 215.3 kB / 485.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008526/0.1281, allocations: 227.5 kB / 485.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005237/0.1286, allocations: 295.8 kB / 485.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.1298, allocations: 0.5269 MB / 486.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003776/0.1301, allocations: 175.4 kB / 486.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005278/0.1307, allocations: 251.3 kB / 486.8 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.574e-05/0.1308, allocations: 20 kB / 486.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000475/0.1313, allocations: 163.7 kB / 486.9 MB, free: 10.08 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003137/0.1316, allocations: 199.5 kB / 487.1 MB, free: 9.883 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.1318, allocations: 113.5 kB / 487.2 MB, free: 9.766 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007721/0.1325, allocations: 498.8 kB / 487.7 MB, free: 9.277 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1326, allocations: 0 / 487.7 MB, free: 9.277 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1326, allocations: 0 / 487.7 MB, free: 9.277 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1326, allocations: 0 / 487.7 MB, free: 9.277 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.001859/0.1345, allocations: 0.692 MB / 488.4 MB, free: 8.535 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1345, allocations: 8.031 kB / 488.4 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001613/0.1347, allocations: 90.5 kB / 488.5 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008364/0.1355, allocations: 91.28 kB / 488.6 MB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/0.1365, allocations: 398 kB / 489 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.1366, allocations: 32.94 kB / 489 MB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001801/0.1368, allocations: 47.97 kB / 489.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.1383, allocations: 0.6726 MB / 489.7 MB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.1383, allocations: 4 kB / 489.8 MB, free: 7.117 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.127e-05/0.1384, allocations: 16 kB / 489.8 MB, free: 7.102 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002931/0.1387, allocations: 52.95 kB / 489.8 MB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/0.1405, allocations: 0.6635 MB / 490.5 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005744/0.1462, allocations: 2.517 MB / 493 MB, free: 3.734 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008767/0.1472, allocations: 329.3 kB / 493.3 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.506e-05/0.1472, allocations: 8.312 kB / 493.3 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.1473, allocations: 46.55 kB / 493.4 MB, free: 3.332 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.517e-06/0.1473, allocations: 0 / 493.4 MB, free: 3.332 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.003396/0.1507, allocations: 1.495 MB / 494.9 MB, free: 1.742 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.1508, allocations: 85.05 kB / 495 MB, free: 1.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004662/0.1513, allocations: 304.4 kB / 495.3 MB, free: 1.328 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.1513, allocations: 29.7 kB / 495.3 MB, free: 1.293 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.1516, allocations: 310.2 kB / 495.6 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.1518, allocations: 149.9 kB / 495.7 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-05/0.1518, allocations: 11.98 kB / 495.7 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.152, allocations: 334.8 kB / 496.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004848/0.1525, allocations: 193 kB / 496.3 MB, free: 312 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006565/0.1531, allocations: 361.2 kB / 496.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.1538, allocations: 269 kB / 496.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1538, allocations: 0 / 496.9 MB, free: 15.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001478/0.1553, allocations: 0.6031 MB / 497.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.1554, allocations: 8 kB / 497.5 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.1554, allocations: 8 kB / 497.5 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.1554, allocations: 8 kB / 497.5 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008316/0.1563, allocations: 115.8 kB / 497.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.578e-05/0.1563, allocations: 12.47 kB / 497.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004137/0.1567, allocations: 31.88 kB / 497.7 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.1568, allocations: 23.98 kB / 497.7 MB, free: 14.81 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003614/0.1572, allocations: 210.7 kB / 497.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.1573, allocations: 39.52 kB / 497.9 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.1586, allocations: 492.4 kB / 498.4 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.906e-05/0.1586, allocations: 11.98 kB / 498.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1586, allocations: 7.938 kB / 498.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1586, allocations: 4 kB / 498.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002754/0.1614, allocations: 1.093 MB / 499.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1614, allocations: 4 kB / 499.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006818/0.1621, allocations: 67.89 kB / 499.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/0.1621, allocations: 4 kB / 499.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.1622, allocations: 16.08 kB / 499.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.1622, allocations: 3.953 kB / 499.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.1622, allocations: 4 kB / 499.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.164, allocations: 0.8621 MB / 0.4887 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.1641, allocations: 104.8 kB / 0.4888 GB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.1642, allocations: 12 kB / 0.4889 GB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/0.1646, allocations: 15.97 kB / 0.4889 GB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.736e-05/0.1647, allocations: 19.98 kB / 0.4889 GB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-05/0.1647, allocations: 23.97 kB / 0.4889 GB, free: 11.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003157/0.1651, allocations: 207 kB / 0.4891 GB, free: 11.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1651, allocations: 0 / 0.4891 GB, free: 11.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007218/0.1658, allocations: 112 kB / 0.4892 GB, free: 11.38 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 (33): * Single equations (assignments): 30 * 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.002313/0.1681, allocations: 1.693 MB / 0.4909 GB, free: 9.625 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.1694, allocations: 487.9 kB / 0.4913 GB, free: 9.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1694, allocations: 0 / 0.4913 GB, free: 9.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005275/0.1699, allocations: 223.8 kB / 0.4916 GB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006034/0.1705, allocations: 58.27 kB / 0.4916 GB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007945/0.1785, allocations: 6.324 MB / 0.4978 GB, free: 2.387 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006743/0.1792, allocations: 0.8828 MB / 0.4986 GB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003872/0.1796, allocations: 151.4 kB / 0.4988 GB, free: 1.332 MB / 346.7 MB Notification: Performance of SimCode: time 1.362e-06/0.1796, allocations: 0 / 0.4988 GB, free: 1.332 MB / 346.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_ReferenceSynchronCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronFunctions.cpp:85:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronFunctions.cpp:144:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronFMU.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_ReferenceSynchronCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_Introductory_ReferenceSynchronCalcHelperMain.o] Error 1