Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",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.002137/0.002142, allocations: 185.4 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.972/1.972, 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.001133/0.001133, allocations: 94.84 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.2556/0.2556, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.000449, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.0104/0.123, allocations: 6.603 MB / 485.7 MB, free: 11.31 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005648/0.1287, allocations: 2.211 MB / 487.9 MB, free: 9.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000735/0.1295, allocations: 55.62 kB / 488 MB, free: 9.035 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006581/0.1301, allocations: 159 kB / 488.2 MB, free: 8.879 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.1315, allocations: 390.7 kB / 488.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.133, allocations: 351.3 kB / 488.9 MB, free: 8.152 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.1341, allocations: 0.55 MB / 489.4 MB, free: 7.602 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001348/0.1354, allocations: 0.6367 MB / 490.1 MB, free: 6.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007105/0.1361, allocations: 330.8 kB / 490.4 MB, free: 6.605 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008323/0.137, allocations: 414.8 kB / 490.8 MB, free: 6.199 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.1371, allocations: 36 kB / 490.8 MB, free: 6.164 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005788/0.1377, allocations: 183.7 kB / 491 MB, free: 5.984 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004434/0.1382, allocations: 307.3 kB / 491.3 MB, free: 5.684 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002199/0.1384, allocations: 165.3 kB / 491.5 MB, free: 5.516 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.1396, allocations: 0.7482 MB / 492.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.1396, allocations: 0 / 492.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.328e-06/0.1396, allocations: 0 / 492.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.1397, allocations: 3.938 kB / 492.2 MB, free: 4.762 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002921/0.1426, allocations: 0.9999 MB / 493.2 MB, free: 3.711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1427, allocations: 8.031 kB / 493.2 MB, free: 3.703 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002065/0.1429, allocations: 118.6 kB / 493.3 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/0.144, allocations: 130.9 kB / 493.5 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.1455, allocations: 0.5678 MB / 494 MB, free: 2.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.26e-05/0.1456, allocations: 49.3 kB / 494.1 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002391/0.1458, allocations: 68 kB / 494.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.1481, allocations: 1.006 MB / 495.2 MB, free: 1.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.756e-05/0.1482, allocations: 4 kB / 495.2 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.1483, allocations: 24 kB / 495.2 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003377/0.1487, allocations: 73.89 kB / 495.3 MB, free: 1.582 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002483/0.1512, allocations: 0.968 MB / 496.2 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007701/0.1589, allocations: 3.272 MB / 499.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.1608, allocations: 0.6985 MB / 0.4885 GB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.119e-05/0.1609, allocations: 9.547 kB / 0.4885 GB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.161, allocations: 39.12 kB / 0.4885 GB, free: 12.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=73): time 5.471e-06/0.161, allocations: 4 kB / 0.4885 GB, free: 12.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=75): time 0.005955/0.167, allocations: 2.564 MB / 0.491 GB, free: 9.742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.1671, allocations: 89.8 kB / 0.4911 GB, free: 9.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000739/0.1678, allocations: 441.8 kB / 0.4915 GB, free: 9.199 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.579e-05/0.1679, allocations: 37.7 kB / 0.4916 GB, free: 9.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003285/0.1682, allocations: 393.9 kB / 0.4919 GB, free: 8.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002924/0.1685, allocations: 260.3 kB / 0.4922 GB, free: 8.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.1686, allocations: 16 kB / 0.4922 GB, free: 8.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1688, allocations: 346.8 kB / 0.4925 GB, free: 8.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008475/0.1696, allocations: 337.8 kB / 0.4929 GB, free: 7.816 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.1707, allocations: 0.5146 MB / 0.4934 GB, free: 7.23 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00714/0.1778, allocations: 1.381 MB / 0.4947 GB, free: 5.832 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.1779, allocations: 0 / 0.4947 GB, free: 5.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002593/0.1805, allocations: 1.063 MB / 0.4958 GB, free: 4.742 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1805, allocations: 8 kB / 0.4958 GB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.1805, allocations: 8 kB / 0.4958 GB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.1807, allocations: 32.84 kB / 0.4958 GB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/0.1823, allocations: 203.7 kB / 0.496 GB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.1837, allocations: 1.342 MB / 0.4973 GB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007425/0.1844, allocations: 35.97 kB / 0.4973 GB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-05/0.1846, allocations: 32.25 kB / 0.4974 GB, free: 2.949 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (96): * Single equations (assignments): 93 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000564/0.1851, allocations: 273.5 kB / 0.4976 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.1853, allocations: 67.23 kB / 0.4977 GB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/0.1876, allocations: 0.9504 MB / 0.4986 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.236e-05/0.1877, allocations: 23.94 kB / 0.4986 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1877, allocations: 0 / 0.4986 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.1877, allocations: 4 kB / 0.4987 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005169/0.1929, allocations: 1.985 MB / 0.5006 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.193, allocations: 4 kB / 0.5006 GB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.1944, allocations: 168.3 kB / 0.5008 GB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/0.1945, allocations: 28.84 kB / 0.5008 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-05/0.1946, allocations: 27.98 kB / 0.5008 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.1959, allocations: 1.331 MB / 0.5021 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.1959, allocations: 8 kB / 0.5021 GB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003339/0.1993, allocations: 1.732 MB / 0.5038 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.1995, allocations: 144.3 kB / 0.5039 GB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.1997, allocations: 23.98 kB / 0.504 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000609/0.2003, allocations: 31.97 kB / 0.504 GB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.2005, allocations: 64.39 kB / 0.5041 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.2006, allocations: 31.89 kB / 0.5041 GB, free: 11.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000515/0.2011, allocations: 295.1 kB / 0.5044 GB, free: 11.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2011, allocations: 0 / 0.5044 GB, free: 11.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009685/0.2021, allocations: 176 kB / 0.5045 GB, free: 11.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * 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 (76): * Single equations (assignments): 72 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004224/0.2063, allocations: 3.634 MB / 0.5081 GB, free: 7.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.2086, allocations: 0.938 MB / 0.509 GB, free: 6.301 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.2087, allocations: 4 kB / 0.509 GB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.2097, allocations: 0.5194 MB / 0.5095 GB, free: 5.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.2108, allocations: 126 kB / 0.5096 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3006/0.5114, allocations: 8.646 MB / 0.5181 GB, free: 51.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000765/0.5122, allocations: 1.032 MB / 0.5191 GB, free: 50.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007313/0.513, allocations: 279.8 kB / 0.5194 GB, free: 50.7 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.513, allocations: 3.469 kB / 0.5194 GB, free: 50.7 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_Inverters_InverterAvToGridCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridFunctions.cpp:85:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridFunctions.cpp:144:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridFMU.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_Inverters_InverterAvToGridCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGridCalcHelperMain.o] Error 1