Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",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.001533/0.001533, allocations: 189.2 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.959/1.959, allocations: 205.4 MB / 221.9 MB, free: 13.79 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.001123/0.001123, allocations: 94.84 kB / 270.3 MB, free: 13.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2548/0.2548, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000452/0.0004522, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 56.32 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01153/0.1171, allocations: 6.923 MB / 486 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007192/0.1244, allocations: 3.022 MB / 489.1 MB, free: 7.953 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009915/0.1254, allocations: 47.69 kB / 489.1 MB, free: 7.906 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009601/0.1264, allocations: 218.8 kB / 489.3 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002851/0.1293, allocations: 0.6465 MB / 490 MB, free: 7.043 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.1308, allocations: 267.5 kB / 490.2 MB, free: 6.781 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002343/0.1332, allocations: 0.8659 MB / 491.1 MB, free: 5.914 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002624/0.1359, allocations: 1.122 MB / 492.2 MB, free: 4.746 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.1373, allocations: 466.5 kB / 492.7 MB, free: 4.289 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.1387, allocations: 0.5061 MB / 493.2 MB, free: 3.781 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003338/0.139, allocations: 59.94 kB / 493.2 MB, free: 3.723 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.1408, allocations: 0.5734 MB / 493.8 MB, free: 3.148 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008384/0.1417, allocations: 387 kB / 494.2 MB, free: 2.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000558/0.1423, allocations: 253.1 kB / 494.4 MB, free: 2.516 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003106/0.1455, allocations: 1.652 MB / 496.1 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1455, allocations: 0 / 496.1 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.803e-06/0.1456, allocations: 4 kB / 496.1 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.163e-05/0.1456, allocations: 0 / 496.1 MB, free: 0.8555 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004957/0.1506, allocations: 1.352 MB / 497.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.1507, allocations: 8.031 kB / 497.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005825/0.1513, allocations: 172.7 kB / 497.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.1524, allocations: 174.4 kB / 497.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002486/0.155, allocations: 0.783 MB / 498.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/0.1554, allocations: 208.7 kB / 498.8 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004137/0.1558, allocations: 103.9 kB / 498.9 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004145/0.16, allocations: 1.454 MB / 0.4886 GB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.133e-05/0.1601, allocations: 7.938 kB / 0.4886 GB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/0.1603, allocations: 43.98 kB / 0.4887 GB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002119/0.1605, allocations: 81.92 kB / 0.4887 GB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004115/0.1646, allocations: 1.261 MB / 0.49 GB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01278/0.1774, allocations: 5.227 MB / 0.4951 GB, free: 5.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002985/0.1805, allocations: 1.036 MB / 0.4961 GB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.1807, allocations: 13.23 kB / 0.4961 GB, free: 4.504 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/0.1807, allocations: 39.12 kB / 0.4961 GB, free: 4.457 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 4.379e-06/0.1807, allocations: 0 / 0.4961 GB, free: 4.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=78): time 0.01166/0.1924, allocations: 3.408 MB / 0.4995 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.1925, allocations: 115.4 kB / 0.4996 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.1939, allocations: 0.6797 MB / 0.5002 GB, free: 92 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/0.1941, allocations: 41.64 kB / 0.5003 GB, free: 44 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.1945, allocations: 0.4973 MB / 0.5008 GB, free: 15.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003893/0.195, allocations: 272.1 kB / 0.501 GB, free: 15.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.038e-05/0.1951, allocations: 20 kB / 0.501 GB, free: 15.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1953, allocations: 350.8 kB / 0.5014 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.1966, allocations: 445.8 kB / 0.5018 GB, free: 14.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.1981, allocations: 0.7126 MB / 0.5025 GB, free: 13.62 MB / 362.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: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.007731/0.2059, allocations: 1.58 MB / 0.504 GB, free: 12.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.238e-06/0.2059, allocations: 3.938 kB / 0.504 GB, free: 12.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003681/0.2096, allocations: 1.369 MB / 0.5054 GB, free: 10.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.2097, allocations: 8.469 kB / 0.5054 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.2097, allocations: 12 kB / 0.5054 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004536/0.2102, allocations: 110.5 kB / 0.5055 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.2119, allocations: 219.6 kB / 0.5057 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.2146, allocations: 2.748 MB / 0.5084 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.216, allocations: 92.02 kB / 0.5085 GB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.2161, allocations: 43.94 kB / 0.5085 GB, free: 7.125 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000908/0.2171, allocations: 417.7 kB / 0.5089 GB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002557/0.2173, allocations: 79.06 kB / 0.509 GB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002941/0.2203, allocations: 1.086 MB / 0.5101 GB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.66e-05/0.2203, allocations: 16 kB / 0.5101 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.2204, allocations: 0 / 0.5101 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/0.2204, allocations: 11.94 kB / 0.5101 GB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006178/0.2266, allocations: 2.377 MB / 0.5124 GB, free: 3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.2266, allocations: 3.984 kB / 0.5124 GB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.228, allocations: 143.8 kB / 0.5126 GB, free: 2.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002127/0.2282, allocations: 41.7 kB / 0.5126 GB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.535e-05/0.2283, allocations: 20 kB / 0.5126 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2992/0.5276, allocations: 2.669 MB / 0.5152 GB, free: 50.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.5276, allocations: 5 kB / 0.5152 GB, free: 50.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004255/0.5319, allocations: 1.788 MB / 0.517 GB, free: 50.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000566/0.5325, allocations: 249.2 kB / 0.5172 GB, free: 49.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.5327, allocations: 16.34 kB / 0.5172 GB, free: 49.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009133/0.5336, allocations: 58.2 kB / 0.5173 GB, free: 49.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002546/0.5339, allocations: 58.97 kB / 0.5173 GB, free: 49.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.87e-05/0.534, allocations: 25.75 kB / 0.5174 GB, free: 49.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008821/0.5348, allocations: 477.2 kB / 0.5178 GB, free: 49.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5349, allocations: 0 / 0.5178 GB, free: 49.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0015/0.5364, allocations: 259.7 kB / 0.5181 GB, free: 49.87 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004471/0.5409, allocations: 2.594 MB / 0.5206 GB, free: 48.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003193/0.5441, allocations: 1.363 MB / 0.5219 GB, free: 47.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.5441, allocations: 0 / 0.5219 GB, free: 47.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.5458, allocations: 0.731 MB / 0.5226 GB, free: 47.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.5474, allocations: 208.5 kB / 0.5228 GB, free: 47.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0187/0.5661, allocations: 12.87 MB / 0.5354 GB, free: 37.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001018/0.5672, allocations: 1.177 MB / 0.5366 GB, free: 36.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009399/0.5681, allocations: 351.7 kB / 0.5369 GB, free: 36.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5682, allocations: 1.062 kB / 0.5369 GB, free: 36.59 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_AC1ph_DC_Drives_BLDCCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCFunctions.cpp:200:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCFunctions.cpp:259:19: error: use of undeclared identifier '_omcQ_24i1_' switch (_omcQ_24i1_) { /* ASUB */ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCFMU.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_AC1ph_DC_Drives_BLDCCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_BLDCCalcHelperMain.o] Error 1