Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.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.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_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.001557/0.001561, allocations: 182.7 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 1.978/1.978, 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.001174/0.001173, allocations: 106.8 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.2619/0.2619, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004752/0.0004753, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1102, allocations: 56.35 MB / 479.1 MB, free: 1.922 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.01051/0.1207, allocations: 6.416 MB / 485.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0059/0.1267, allocations: 2.297 MB / 487.9 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007491/0.1275, allocations: 39.75 kB / 487.9 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006576/0.1282, allocations: 155.1 kB / 488 MB, free: 8.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001893/0.1301, allocations: 450.6 kB / 488.5 MB, free: 8.539 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.1315, allocations: 315.3 kB / 488.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001489/0.133, allocations: 0.6714 MB / 489.5 MB, free: 7.559 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/0.1351, allocations: 0.836 MB / 490.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009678/0.136, allocations: 390.7 kB / 490.7 MB, free: 6.305 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.1372, allocations: 0.522 MB / 491.2 MB, free: 5.781 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000195/0.1374, allocations: 48 kB / 491.2 MB, free: 5.734 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.1388, allocations: 0.4953 MB / 491.7 MB, free: 5.238 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006554/0.1395, allocations: 395 kB / 492.1 MB, free: 4.852 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003597/0.1399, allocations: 189.3 kB / 492.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002052/0.1419, allocations: 1.146 MB / 493.5 MB, free: 3.512 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.142, allocations: 0 / 493.5 MB, free: 3.512 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.142, allocations: 0 / 493.5 MB, free: 3.512 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.142, allocations: 0 / 493.5 MB, free: 3.512 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.004694/0.1467, allocations: 1.231 MB / 494.7 MB, free: 2.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.1468, allocations: 8.031 kB / 494.7 MB, free: 2.223 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004022/0.1472, allocations: 151.6 kB / 494.8 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.1484, allocations: 138.8 kB / 495 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.1506, allocations: 0.6521 MB / 495.6 MB, free: 1.23 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/0.151, allocations: 175.1 kB / 495.8 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003493/0.1514, allocations: 91.83 kB / 495.9 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004207/0.1556, allocations: 1.418 MB / 497.3 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.219e-05/0.1557, allocations: 0 / 497.3 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.1558, allocations: 35.98 kB / 497.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003758/0.1562, allocations: 77.95 kB / 497.4 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005378/0.1616, allocations: 1.561 MB / 499 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.1738, allocations: 4.451 MB / 0.4916 GB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004305/0.1782, allocations: 1.256 MB / 0.4929 GB, free: 7.973 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.1783, allocations: 12.7 kB / 0.4929 GB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.157e-05/0.1784, allocations: 51.17 kB / 0.4929 GB, free: 7.898 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 4.449e-06/0.1784, allocations: 0 / 0.4929 GB, free: 7.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=102): time 0.01233/0.1908, allocations: 4.178 MB / 0.497 GB, free: 3.574 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/0.1909, allocations: 86.11 kB / 0.4971 GB, free: 3.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006843/0.1916, allocations: 401.8 kB / 0.4975 GB, free: 3.074 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001439/0.1917, allocations: 41.73 kB / 0.4975 GB, free: 3.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.1921, allocations: 382.7 kB / 0.4979 GB, free: 2.648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004291/0.1925, allocations: 346.9 kB / 0.4982 GB, free: 2.305 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.735e-05/0.1926, allocations: 19.98 kB / 0.4982 GB, free: 2.285 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1928, allocations: 354.8 kB / 0.4986 GB, free: 1.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.1948, allocations: 0.607 MB / 0.4992 GB, free: 1.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.197, allocations: 0.762 MB / 0.4999 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.1992, allocations: 0.6862 MB / 0.5006 GB, free: 15.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.1992, allocations: 3.938 kB / 0.5006 GB, free: 15.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.004759/0.204, allocations: 1.596 MB / 0.5021 GB, free: 14.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.204, allocations: 8 kB / 0.5021 GB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.2041, allocations: 4 kB / 0.5021 GB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.2042, allocations: 28.84 kB / 0.5022 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005257/0.2095, allocations: 0.6322 MB / 0.5028 GB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.2205, allocations: 6.395 MB / 0.509 GB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.2219, allocations: 100.1 kB / 0.5091 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.2221, allocations: 28 kB / 0.5092 GB, free: 6.477 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 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.0007446/0.2229, allocations: 317.5 kB / 0.5095 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002459/0.2231, allocations: 67.23 kB / 0.5095 GB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004904/0.228, allocations: 1.612 MB / 0.5111 GB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.294e-05/0.2281, allocations: 31.94 kB / 0.5111 GB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.2282, allocations: 3.984 kB / 0.5111 GB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.2282, allocations: 7.984 kB / 0.5111 GB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008304/0.2365, allocations: 2.885 MB / 0.514 GB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.2366, allocations: 0 / 0.514 GB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006159/0.2427, allocations: 0.683 MB / 0.5146 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/0.2429, allocations: 24.86 kB / 0.5146 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.2431, allocations: 27.98 kB / 0.5147 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3093/0.5524, allocations: 1.39 MB / 0.516 GB, free: 50.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5525, allocations: 2.125 kB / 0.516 GB, free: 50.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0078/0.5603, allocations: 2.668 MB / 0.5186 GB, free: 50.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.5606, allocations: 139.4 kB / 0.5188 GB, free: 50.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/0.5608, allocations: 21.59 kB / 0.5188 GB, free: 50.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.562, allocations: 86.27 kB / 0.5189 GB, free: 50.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.5623, allocations: 77.28 kB / 0.5189 GB, free: 50.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.5625, allocations: 23.12 kB / 0.519 GB, free: 50.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004635/0.5629, allocations: 280.2 kB / 0.5192 GB, free: 50.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.563, allocations: 0 / 0.5192 GB, free: 50.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001317/0.5643, allocations: 239.4 kB / 0.5195 GB, free: 50.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (87): * Single equations (assignments): 82 * Array equations: 3 * 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.008032/0.5723, allocations: 3.813 MB / 0.5232 GB, free: 47.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008542/0.5809, allocations: 1.992 MB / 0.5251 GB, free: 47.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.581, allocations: 4.469 kB / 0.5251 GB, free: 47.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006148/0.5871, allocations: 1.317 MB / 0.5264 GB, free: 47.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.5884, allocations: 136.5 kB / 0.5266 GB, free: 47.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0196/0.6081, allocations: 9.134 MB / 0.5355 GB, free: 41.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007461/0.6089, allocations: 1.1 MB / 0.5366 GB, free: 40.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009256/0.6098, allocations: 296.9 kB / 0.5368 GB, free: 40.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6098, allocations: 0 / 0.5368 GB, free: 40.62 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_RectifierCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierFunctions.cpp:85:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierFunctions.cpp:144:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierFunctions.cpp:262:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierFunctions.cpp:321:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_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 4 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_RectifierCalcHelperMain.o] Error 1