Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.002329/0.002329, allocations: 186 kB / 13.19 MB, free: 2.125 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.041/2.041, allocations: 205.2 MB / 218.9 MB, free: 9.215 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.001048/0.001048, allocations: 91.77 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2674/0.2674, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.457e-05/3.467e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4856/0.5876, allocations: 102.6 MB / 0.5624 GB, free: 1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002445/0.5901, allocations: 0.6869 MB / 0.563 GB, free: 324 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07468/0.6648, allocations: 16.73 MB / 0.5794 GB, free: 15.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6648, allocations: 0 / 0.5794 GB, free: 15.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.248e-05/0.6649, allocations: 8 kB / 0.5794 GB, free: 15.39 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.00202/0.6669, allocations: 0.7812 MB / 0.5801 GB, free: 14.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.667, allocations: 12.03 kB / 0.5801 GB, free: 14.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.6672, allocations: 78.53 kB / 0.5802 GB, free: 14.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.6674, allocations: 71.19 kB / 0.5803 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.6701, allocations: 0.7497 MB / 0.581 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.6702, allocations: 41 kB / 0.5811 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.6703, allocations: 47.84 kB / 0.5811 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.6716, allocations: 0.5109 MB / 0.5816 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.6717, allocations: 0 / 0.5816 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.488e-05/0.6718, allocations: 16 kB / 0.5816 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.6718, allocations: 15.95 kB / 0.5816 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008739/0.6727, allocations: 314.9 kB / 0.5819 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.6768, allocations: 2.095 MB / 0.584 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/0.6775, allocations: 220.6 kB / 0.5842 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.6777, allocations: 82.56 kB / 0.5843 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.6777, allocations: 11.98 kB / 0.5843 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003633/0.6781, allocations: 155.6 kB / 0.5844 GB, free: 9.895 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.6781, allocations: 0 / 0.5844 GB, free: 9.895 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002352/0.6805, allocations: 0.8703 MB / 0.5853 GB, free: 8.965 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.842e-05/0.6806, allocations: 136.5 kB / 0.5854 GB, free: 8.801 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006868/0.6813, allocations: 371.1 kB / 0.5858 GB, free: 8.434 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.6814, allocations: 29.7 kB / 0.5858 GB, free: 8.398 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.6817, allocations: 338 kB / 0.5861 GB, free: 8.062 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.6818, allocations: 90.97 kB / 0.5862 GB, free: 7.973 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.6818, allocations: 8 kB / 0.5862 GB, free: 7.965 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.682, allocations: 326.9 kB / 0.5865 GB, free: 7.637 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.6823, allocations: 84.86 kB / 0.5866 GB, free: 7.555 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/0.6826, allocations: 221.7 kB / 0.5868 GB, free: 7.273 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/0.683, allocations: 117.1 kB / 0.5869 GB, free: 7.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.683, allocations: 4 kB / 0.5869 GB, free: 7.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001354/0.6844, allocations: 408.3 kB / 0.5873 GB, free: 6.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.6844, allocations: 4 kB / 0.5873 GB, free: 6.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.6844, allocations: 4 kB / 0.5873 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006508/0.6851, allocations: 92.78 kB / 0.5874 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004776/0.6856, allocations: 67.91 kB / 0.5875 GB, free: 6.582 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.6885, allocations: 1.699 MB / 0.5891 GB, free: 4.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.689, allocations: 19.98 kB / 0.5892 GB, free: 4.734 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.6891, allocations: 16 kB / 0.5892 GB, free: 4.719 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.6893, allocations: 128.9 kB / 0.5893 GB, free: 4.586 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.221e-05/0.6894, allocations: 47.39 kB / 0.5893 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009037/0.6903, allocations: 273.9 kB / 0.5896 GB, free: 4.254 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.6903, allocations: 4 kB / 0.5896 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.6903, allocations: 4 kB / 0.5896 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.6903, allocations: 3.984 kB / 0.5896 GB, free: 4.242 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.6922, allocations: 0.7684 MB / 0.5904 GB, free: 3.414 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.6922, allocations: 7.938 kB / 0.5904 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005178/0.6927, allocations: 47.91 kB / 0.5904 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003462/0.6931, allocations: 56.73 kB / 0.5905 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.6932, allocations: 11.95 kB / 0.5905 GB, free: 3.289 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.695, allocations: 1.433 MB / 0.5919 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6951, allocations: 0 / 0.5919 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.6963, allocations: 493.8 kB / 0.5924 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.6965, allocations: 140.6 kB / 0.5925 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.058e-05/0.6966, allocations: 4 kB / 0.5925 GB, free: 1.043 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.697, allocations: 12 kB / 0.5925 GB, free: 1.031 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.6971, allocations: 35.91 kB / 0.5925 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.6972, allocations: 4 kB / 0.5925 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005344/0.6977, allocations: 289.2 kB / 0.5928 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6977, allocations: 4 kB / 0.5928 GB, free: 0.707 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007522/0.6985, allocations: 127.9 kB / 0.5929 GB, free: 0.582 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.002759/0.7013, allocations: 1.456 MB / 0.5944 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.7025, allocations: 383 kB / 0.5947 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.7025, allocations: 4.062 kB / 0.5947 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.7031, allocations: 226.5 kB / 0.5949 GB, free: 14.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.7042, allocations: 114.1 kB / 0.5951 GB, free: 14.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.7073, allocations: 1.084 MB / 0.5961 GB, free: 13.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006675/0.708, allocations: 0.8972 MB / 0.597 GB, free: 12.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.7084, allocations: 171.4 kB / 0.5972 GB, free: 12.15 MB / 442.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7084, allocations: 3.938 kB / 0.5972 GB, free: 12.15 MB / 442.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/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_DCmotor_parCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitializeParameter.cpp:119:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp66; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitializeParameter.cpp:120: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/", tmp66); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:109:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:110: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_parInitialize.cpp:786:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:787: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_parCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.cpp:1046: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_parCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parFMU.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 7 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.o] Error 1