Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.DCmotor_ser,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.00208/0.00208, allocations: 185.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 94.62 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3365/0.3365, allocations: 37.99 MB / 347.7 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.018e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4964/0.607, allocations: 101.5 MB / 0.5544 GB, free: 8.836 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001928/0.6089, allocations: 0.5774 MB / 0.555 GB, free: 8.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05901/0.668, allocations: 14.99 MB / 0.5696 GB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.668, allocations: 0 / 0.5696 GB, free: 13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.362e-05/0.6681, allocations: 12 kB / 0.5696 GB, free: 12.99 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001901/0.67, allocations: 0.7306 MB / 0.5704 GB, free: 12.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.67, allocations: 11.97 kB / 0.5704 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.6702, allocations: 59.3 kB / 0.5704 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002379/0.6726, allocations: 0.69 MB / 0.5711 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.6727, allocations: 15.94 kB / 0.5711 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.757e-05/0.6728, allocations: 27.89 kB / 0.5711 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006748/0.6735, allocations: 229.9 kB / 0.5714 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008598/0.6743, allocations: 396.8 kB / 0.5717 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.6744, allocations: 4 kB / 0.5717 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.6744, allocations: 3.984 kB / 0.5717 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.6745, allocations: 15.95 kB / 0.5718 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003123/0.6776, allocations: 1.786 MB / 0.5735 GB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006756/0.6783, allocations: 230 kB / 0.5737 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.6785, allocations: 78.31 kB / 0.5738 GB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.6786, allocations: 8.188 kB / 0.5738 GB, free: 9.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003503/0.6789, allocations: 167.8 kB / 0.574 GB, free: 8.969 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.274e-06/0.679, allocations: 0 / 0.574 GB, free: 8.969 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.002172/0.6811, allocations: 0.8 MB / 0.5747 GB, free: 8.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.965e-05/0.6812, allocations: 132.5 kB / 0.5749 GB, free: 8.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000533/0.6818, allocations: 308.9 kB / 0.5752 GB, free: 7.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.6818, allocations: 25.7 kB / 0.5752 GB, free: 7.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.6821, allocations: 321.4 kB / 0.5755 GB, free: 7.508 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.6822, allocations: 85.12 kB / 0.5756 GB, free: 7.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.6822, allocations: 0 / 0.5756 GB, free: 7.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6824, allocations: 329.4 kB / 0.5759 GB, free: 7.109 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.6826, allocations: 72.17 kB / 0.576 GB, free: 7.066 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.6829, allocations: 191.7 kB / 0.5761 GB, free: 6.855 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.6832, allocations: 105.7 kB / 0.5762 GB, free: 6.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.6833, allocations: 0 / 0.5762 GB, free: 6.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001166/0.6844, allocations: 358.2 kB / 0.5766 GB, free: 6.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.6845, allocations: 8 kB / 0.5766 GB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.6845, allocations: 4 kB / 0.5766 GB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006743/0.6852, allocations: 99.88 kB / 0.5767 GB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/0.6856, allocations: 63.91 kB / 0.5768 GB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.6887, allocations: 1.754 MB / 0.5785 GB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.6892, allocations: 31.83 kB / 0.5785 GB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.6893, allocations: 19.38 kB / 0.5785 GB, free: 4.625 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_ser.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000191/0.6895, allocations: 108.9 kB / 0.5786 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007825/0.6903, allocations: 261 kB / 0.5789 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.624e-05/0.6904, allocations: 51.16 kB / 0.5789 GB, free: 4.246 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000834/0.6912, allocations: 267.8 kB / 0.5792 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.6912, allocations: 4 kB / 0.5792 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.6912, allocations: 0 / 0.5792 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.6913, allocations: 0 / 0.5792 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.6928, allocations: 0.6835 MB / 0.5798 GB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.6928, allocations: 7.984 kB / 0.5799 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004453/0.6933, allocations: 39.92 kB / 0.5799 GB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/0.6936, allocations: 51.94 kB / 0.5799 GB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.6937, allocations: 0 / 0.5799 GB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.6955, allocations: 1.388 MB / 0.5813 GB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/0.6955, allocations: 8.031 kB / 0.5813 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.6967, allocations: 492.3 kB / 0.5818 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.6969, allocations: 143.3 kB / 0.5819 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.504e-05/0.697, allocations: 7.953 kB / 0.5819 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.6974, allocations: 4 kB / 0.5819 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.937e-05/0.6975, allocations: 31.14 kB / 0.582 GB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.6976, allocations: 8 kB / 0.582 GB, free: 1.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003981/0.698, allocations: 239.9 kB / 0.5822 GB, free: 1.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.698, allocations: 0 / 0.5822 GB, free: 1.145 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008262/0.6988, allocations: 107.1 kB / 0.5823 GB, free: 1.047 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002687/0.7015, allocations: 1.439 MB / 0.5837 GB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.703, allocations: 364.7 kB / 0.584 GB, free: 15.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.7031, allocations: 0 / 0.584 GB, free: 15.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000569/0.7036, allocations: 229 kB / 0.5843 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009572/0.7046, allocations: 110.2 kB / 0.5844 GB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.7074, allocations: 0.9321 MB / 0.5853 GB, free: 14.22 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006299/0.7081, allocations: 0.8676 MB / 0.5861 GB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.7084, allocations: 155.2 kB / 0.5863 GB, free: 13.3 MB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/0.7084, allocations: 7.938 kB / 0.5863 GB, free: 13.29 MB / 394.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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitializeParameter.cpp:107:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp57; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitializeParameter.cpp:108:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Resources/Tables/", tmp57); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:110:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:111:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Resources/Tables/", tmp14); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:731:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:732:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT3, tmp19); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.cpp:1044:27: error: use of undeclared identifier 'tmp2' _tabLoad_P_fileName_ = (tmp2 + "hNormProfile.tab"); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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 7 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o] Error 1