Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.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.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier",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.001545/0.001549, allocations: 185.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.007/2.007, 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.001171/0.001171, allocations: 98.83 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.2714/0.2714, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004589/0.0004593, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1101, allocations: 56.33 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.01057/0.1207, allocations: 6.665 MB / 485.8 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005838/0.1266, allocations: 2.386 MB / 488.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005752/0.1272, allocations: 43.69 kB / 488.2 MB, free: 8.801 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006396/0.1279, allocations: 167 kB / 488.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001609/0.1295, allocations: 486.5 kB / 488.9 MB, free: 8.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.1308, allocations: 339.3 kB / 489.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.132, allocations: 0.6753 MB / 489.9 MB, free: 7.152 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.1338, allocations: 0.84 MB / 490.7 MB, free: 6.277 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007814/0.1346, allocations: 394.7 kB / 491.1 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000977/0.1356, allocations: 490.6 kB / 491.6 MB, free: 5.41 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1358, allocations: 48 kB / 491.6 MB, free: 5.363 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001146/0.1369, allocations: 439.3 kB / 492.1 MB, free: 4.934 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005781/0.1375, allocations: 379.1 kB / 492.4 MB, free: 4.562 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003076/0.1379, allocations: 197.2 kB / 492.6 MB, free: 4.363 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001666/0.1395, allocations: 1.107 MB / 493.7 MB, free: 3.254 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1396, allocations: 0 / 493.7 MB, free: 3.254 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1396, allocations: 0 / 493.7 MB, free: 3.254 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.1396, allocations: 0 / 493.7 MB, free: 3.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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003879/0.1435, allocations: 1.196 MB / 494.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.1435, allocations: 8.031 kB / 494.9 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002748/0.1438, allocations: 151.4 kB / 495.1 MB, free: 1.844 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.1449, allocations: 150.7 kB / 495.2 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.1468, allocations: 0.6426 MB / 495.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003533/0.1471, allocations: 179.1 kB / 496 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003308/0.1475, allocations: 91.94 kB / 496.1 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003625/0.1511, allocations: 1.374 MB / 497.5 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.918e-05/0.1512, allocations: 3.938 kB / 497.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.1513, allocations: 35.98 kB / 497.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002424/0.1516, allocations: 65.91 kB / 497.6 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004272/0.1559, allocations: 1.335 MB / 498.9 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.1672, allocations: 4.959 MB / 0.4921 GB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004075/0.1713, allocations: 1.211 MB / 0.4933 GB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.072e-05/0.1714, allocations: 12.56 kB / 0.4933 GB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.1715, allocations: 47.11 kB / 0.4933 GB, free: 7.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 4.348e-06/0.1715, allocations: 0 / 0.4933 GB, free: 7.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.0101/0.1816, allocations: 3.361 MB / 0.4966 GB, free: 3.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.1817, allocations: 81.67 kB / 0.4967 GB, free: 3.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007819/0.1825, allocations: 465.8 kB / 0.4971 GB, free: 3.371 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.64e-05/0.1826, allocations: 41.69 kB / 0.4972 GB, free: 3.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003582/0.183, allocations: 425.8 kB / 0.4976 GB, free: 2.902 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.1833, allocations: 264.2 kB / 0.4978 GB, free: 2.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.602e-05/0.1834, allocations: 16.03 kB / 0.4978 GB, free: 2.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1836, allocations: 342.8 kB / 0.4982 GB, free: 2.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.1853, allocations: 0.5211 MB / 0.4987 GB, free: 1.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.1872, allocations: 0.6951 MB / 0.4994 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.189, allocations: 0.5848 MB / 0.4999 GB, free: 408 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.189, allocations: 7.953 kB / 0.4999 GB, free: 400 kB / 346.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.008091/0.1971, allocations: 2.072 MB / 0.502 GB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.1972, allocations: 8 kB / 0.502 GB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007514/0.2047, allocations: 1.847 MB / 0.5038 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00336/0.2081, allocations: 0.6924 MB / 0.5045 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.2094, allocations: 155.8 kB / 0.5046 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02036/0.2297, allocations: 7.259 MB / 0.5117 GB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.2309, allocations: 88.05 kB / 0.5118 GB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.2311, allocations: 35.98 kB / 0.5118 GB, free: 3.906 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (77): * Single equations (assignments): 74 * Array equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {4 16} Notification: Performance of prepare postOptimizeDAE: time 0.0006773/0.2318, allocations: 309.5 kB / 0.5121 GB, free: 3.594 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.232, allocations: 59.25 kB / 0.5122 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.236, allocations: 1.324 MB / 0.5135 GB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.832e-05/0.2361, allocations: 19.98 kB / 0.5135 GB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2361, allocations: 3.953 kB / 0.5135 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.2361, allocations: 3.984 kB / 0.5135 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3275/0.5637, allocations: 2.419 MB / 0.5158 GB, free: 52.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.5637, allocations: 0.875 kB / 0.5158 GB, free: 52.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005716/0.5695, allocations: 0.646 MB / 0.5165 GB, free: 52.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001436/0.5696, allocations: 22.5 kB / 0.5165 GB, free: 52.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.5698, allocations: 17.58 kB / 0.5165 GB, free: 52.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.5709, allocations: 1.392 MB / 0.5179 GB, free: 50.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.5709, allocations: 5.219 kB / 0.5179 GB, free: 50.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005937/0.5768, allocations: 2.107 MB / 0.5199 GB, free: 50.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.5771, allocations: 137.9 kB / 0.5201 GB, free: 50.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.5773, allocations: 15 kB / 0.5201 GB, free: 50.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009684/0.5783, allocations: 73.92 kB / 0.5202 GB, free: 50.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.5786, allocations: 64.31 kB / 0.5202 GB, free: 50.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-05/0.5787, allocations: 21.88 kB / 0.5202 GB, free: 50.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005276/0.5792, allocations: 315.5 kB / 0.5205 GB, free: 50.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5792, allocations: 0.5 kB / 0.5205 GB, free: 50.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001271/0.5805, allocations: 234.2 kB / 0.5208 GB, free: 50.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * 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 (68): * Single equations (assignments): 65 * Array equations: 1 * 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.006187/0.5867, allocations: 2.949 MB / 0.5236 GB, free: 48.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004946/0.5917, allocations: 1.598 MB / 0.5252 GB, free: 47.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5917, allocations: 0 / 0.5252 GB, free: 47.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005495/0.5973, allocations: 1.134 MB / 0.5263 GB, free: 47.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/0.5985, allocations: 136 kB / 0.5264 GB, free: 47.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01982/0.6183, allocations: 10.53 MB / 0.5367 GB, free: 40.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000787/0.6192, allocations: 1.095 MB / 0.5378 GB, free: 40.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007405/0.6199, allocations: 289.2 kB / 0.5381 GB, free: 39.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.253e-06/0.6199, allocations: 0 / 0.5381 GB, free: 39.79 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_RectifierCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierFunctions.cpp:83:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierFunctions.cpp:142:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierFMU.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_RectifierCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_RectifierCalcHelperMain.o] Error 1