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.002209/0.002215, allocations: 185.7 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.161/2.161, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.001054/0.001054, allocations: 84.56 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2593/0.2593, allocations: 37.97 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.908e-05/3.937e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1033, allocations: 56.31 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4909/0.5943, allocations: 102.1 MB / 0.5619 GB, free: 1.516 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.003369/0.5977, allocations: 0.6839 MB / 0.5625 GB, free: 0.832 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08791/0.6857, allocations: 15.14 MB / 0.5773 GB, free: 1.535 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6857, allocations: 0 / 0.5773 GB, free: 1.535 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7e-05/0.6858, allocations: 12 kB / 0.5773 GB, free: 1.523 MB / 410.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.00255/0.6884, allocations: 0.7338 MB / 0.578 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/0.6885, allocations: 8.031 kB / 0.5781 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002015/0.6887, allocations: 78.53 kB / 0.5781 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.6889, allocations: 55.3 kB / 0.5782 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/0.6922, allocations: 0.7032 MB / 0.5789 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.182e-05/0.6923, allocations: 28.78 kB / 0.5789 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.6924, allocations: 39.91 kB / 0.5789 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.694, allocations: 460.2 kB / 0.5794 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.829e-05/0.6941, allocations: 0 / 0.5794 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.75e-05/0.6942, allocations: 16 kB / 0.5794 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.714e-05/0.6942, allocations: 11.95 kB / 0.5794 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.6954, allocations: 262.9 kB / 0.5796 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004884/0.7003, allocations: 1.867 MB / 0.5815 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.7014, allocations: 244.2 kB / 0.5817 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.7018, allocations: 86.94 kB / 0.5818 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.688e-05/0.7019, allocations: 4.188 kB / 0.5818 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005559/0.7025, allocations: 171.1 kB / 0.582 GB, free: 12.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 3.396e-06/0.7025, allocations: 0 / 0.582 GB, free: 12.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.003548/0.706, allocations: 0.8429 MB / 0.5828 GB, free: 11.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.7062, allocations: 144.5 kB / 0.5829 GB, free: 11.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008976/0.7071, allocations: 351 kB / 0.5833 GB, free: 11.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.593e-05/0.7073, allocations: 33.7 kB / 0.5833 GB, free: 11.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003128/0.7076, allocations: 306.3 kB / 0.5836 GB, free: 10.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.7077, allocations: 86.75 kB / 0.5837 GB, free: 10.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.7078, allocations: 4 kB / 0.5837 GB, free: 10.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.708, allocations: 326.8 kB / 0.584 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.7084, allocations: 87.98 kB / 0.5841 GB, free: 10.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004789/0.7089, allocations: 208.2 kB / 0.5843 GB, free: 9.945 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004231/0.7093, allocations: 123.8 kB / 0.5844 GB, free: 9.824 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.7093, allocations: 0 / 0.5844 GB, free: 9.824 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001661/0.711, allocations: 393.7 kB / 0.5848 GB, free: 9.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.7111, allocations: 8 kB / 0.5848 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.7111, allocations: 4.531 kB / 0.5848 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008355/0.712, allocations: 96.77 kB / 0.5849 GB, free: 9.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.7126, allocations: 67.84 kB / 0.5849 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004435/0.7171, allocations: 1.816 MB / 0.5867 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/0.7179, allocations: 24 kB / 0.5867 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.177e-05/0.718, allocations: 12 kB / 0.5867 GB, free: 7.27 MB / 426.7 MB 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.0002257/0.7182, allocations: 137.7 kB / 0.5869 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.7184, allocations: 47.38 kB / 0.5869 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.7197, allocations: 290.1 kB / 0.5872 GB, free: 6.789 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.7197, allocations: 0 / 0.5872 GB, free: 6.789 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.7198, allocations: 4 kB / 0.5872 GB, free: 6.785 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.7198, allocations: 7.938 kB / 0.5872 GB, free: 6.777 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002488/0.7223, allocations: 0.7608 MB / 0.5879 GB, free: 5.957 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.433e-06/0.7223, allocations: 4 kB / 0.5879 GB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.7229, allocations: 47.97 kB / 0.588 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004134/0.7233, allocations: 48.81 kB / 0.588 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.7234, allocations: 4 kB / 0.588 GB, free: 5.852 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002542/0.7259, allocations: 1.437 MB / 0.5894 GB, free: 4.273 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.726, allocations: 0 / 0.5894 GB, free: 4.273 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.7276, allocations: 0.5082 MB / 0.5899 GB, free: 3.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.728, allocations: 132.7 kB / 0.5901 GB, free: 3.582 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.7282, allocations: 11.95 kB / 0.5901 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006211/0.7288, allocations: 19.92 kB / 0.5901 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.729, allocations: 19.97 kB / 0.5901 GB, free: 3.531 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.729, allocations: 15.98 kB / 0.5901 GB, free: 3.516 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006802/0.7297, allocations: 273.2 kB / 0.5904 GB, free: 3.254 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7297, allocations: 0 / 0.5904 GB, free: 3.254 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001217/0.731, allocations: 119.9 kB / 0.5905 GB, free: 3.137 MB / 426.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.00389/0.7349, allocations: 1.484 MB / 0.5919 GB, free: 1.641 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.7369, allocations: 391.1 kB / 0.5923 GB, free: 1.246 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.7369, allocations: 0 / 0.5923 GB, free: 1.246 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.7378, allocations: 234.5 kB / 0.5925 GB, free: 1.004 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.7393, allocations: 113.7 kB / 0.5927 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00458/0.7439, allocations: 0.9637 MB / 0.5936 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000869/0.7449, allocations: 0.8621 MB / 0.5944 GB, free: 14.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005835/0.7455, allocations: 163.4 kB / 0.5946 GB, free: 14.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.613e-06/0.7455, allocations: 0 / 0.5946 GB, free: 14.82 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_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:113:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp63; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitializeParameter.cpp:114: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/", tmp63); ~~~~~~~~~~ ^ 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:743:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:744: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/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_serCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serCalcHelperMain.o] Error 1