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.002399/0.002404, allocations: 183.8 kB / 15.76 MB, free: 6.363 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.946/1.946, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.00112/0.00112, allocations: 86.86 kB / 270.2 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2591/0.2591, allocations: 38.06 MB / 356.6 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004475/0.0004477, allocations: 8 kB / 422.8 MB, free: 26.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.107, allocations: 56.32 MB / 479.1 MB, free: 1.965 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5449/0.6519, allocations: 102.2 MB / 0.5677 GB, free: 13.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002717/0.6547, allocations: 0.8651 MB / 0.5686 GB, free: 12.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06854/0.7233, allocations: 15.15 MB / 0.5834 GB, free: 15.74 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7234, allocations: 0 / 0.5834 GB, free: 15.74 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.256e-05/0.7234, allocations: 12 kB / 0.5834 GB, free: 15.73 MB / 394.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.002296/0.7257, allocations: 0.7963 MB / 0.5842 GB, free: 14.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.7258, allocations: 11.97 kB / 0.5842 GB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002342/0.726, allocations: 78.34 kB / 0.5842 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.7263, allocations: 59.3 kB / 0.5843 GB, free: 14.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/0.729, allocations: 0.7141 MB / 0.585 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-05/0.7292, allocations: 24.38 kB / 0.585 GB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.7293, allocations: 44.53 kB / 0.5851 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.7305, allocations: 463.4 kB / 0.5855 GB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.7306, allocations: 7.875 kB / 0.5855 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-05/0.7307, allocations: 18.94 kB / 0.5855 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.7307, allocations: 8 kB / 0.5855 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007743/0.7315, allocations: 271.7 kB / 0.5858 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003638/0.7351, allocations: 1.867 MB / 0.5876 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000793/0.736, allocations: 247.2 kB / 0.5879 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/0.7361, allocations: 4.25 kB / 0.5879 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004063/0.7365, allocations: 178.3 kB / 0.588 GB, free: 11.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 3.937e-06/0.7365, allocations: 0 / 0.588 GB, free: 11.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.002825/0.7393, allocations: 0.9118 MB / 0.5889 GB, free: 10.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.7395, allocations: 139.2 kB / 0.5891 GB, free: 10.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007183/0.7402, allocations: 351.4 kB / 0.5894 GB, free: 10.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.361e-05/0.7403, allocations: 29.14 kB / 0.5894 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.7406, allocations: 310.9 kB / 0.5897 GB, free: 9.906 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.7407, allocations: 90.02 kB / 0.5898 GB, free: 9.828 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.7408, allocations: 5.938 kB / 0.5898 GB, free: 9.828 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.7409, allocations: 329.5 kB / 0.5901 GB, free: 9.504 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.7412, allocations: 79.2 kB / 0.5902 GB, free: 9.453 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003749/0.7416, allocations: 209.2 kB / 0.5904 GB, free: 9.227 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003544/0.742, allocations: 128 kB / 0.5905 GB, free: 9.145 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.742, allocations: 0 / 0.5905 GB, free: 9.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001409/0.7434, allocations: 396.8 kB / 0.5909 GB, free: 8.836 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.7435, allocations: 11.95 kB / 0.5909 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.7435, allocations: 4 kB / 0.5909 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000709/0.7442, allocations: 88.31 kB / 0.591 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.7447, allocations: 74.78 kB / 0.5911 GB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.7483, allocations: 1.844 MB / 0.5929 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005421/0.7489, allocations: 23.42 kB / 0.5929 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.248e-05/0.749, allocations: 19.06 kB / 0.5929 GB, free: 6.891 MB / 394.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 () * Number of clocked 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.0004112/0.7494, allocations: 196.8 kB / 0.5931 GB, free: 6.727 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.7495, allocations: 39.53 kB / 0.5931 GB, free: 6.688 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.7506, allocations: 292.9 kB / 0.5934 GB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.7506, allocations: 11.94 kB / 0.5934 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.7506, allocations: 0 / 0.5934 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.7506, allocations: 4 kB / 0.5934 GB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.7525, allocations: 0.7656 MB / 0.5942 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.7526, allocations: 15.83 kB / 0.5942 GB, free: 5.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.7531, allocations: 35.98 kB / 0.5942 GB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003661/0.7535, allocations: 62.47 kB / 0.5943 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.7535, allocations: 3.188 kB / 0.5943 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.7556, allocations: 1.45 MB / 0.5957 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7556, allocations: 0 / 0.5957 GB, free: 4.227 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.7569, allocations: 0.512 MB / 0.5962 GB, free: 3.785 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.7573, allocations: 136.7 kB / 0.5963 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.662e-05/0.7574, allocations: 10.19 kB / 0.5963 GB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.7578, allocations: 15.52 kB / 0.5964 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.7579, allocations: 27.33 kB / 0.5964 GB, free: 3.605 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.7579, allocations: 8 kB / 0.5964 GB, free: 3.598 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005549/0.7585, allocations: 279.9 kB / 0.5967 GB, free: 3.387 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7585, allocations: 0 / 0.5967 GB, free: 3.387 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000876/0.7594, allocations: 120.8 kB / 0.5968 GB, free: 3.281 MB / 394.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 () * Number of clocked 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.002863/0.7623, allocations: 1.501 MB / 0.5982 GB, free: 1.902 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.7638, allocations: 409.4 kB / 0.5986 GB, free: 1.562 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.7639, allocations: 0 / 0.5986 GB, free: 1.562 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006891/0.7646, allocations: 243.3 kB / 0.5989 GB, free: 1.344 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.7656, allocations: 119.1 kB / 0.599 GB, free: 1.254 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00854/0.7742, allocations: 5.473 MB / 0.6043 GB, free: 12.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006334/0.7749, allocations: 0.8651 MB / 0.6052 GB, free: 11.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/0.7753, allocations: 161.4 kB / 0.6053 GB, free: 11.09 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7753, allocations: 3.938 kB / 0.6053 GB, free: 11.08 MB / 410.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:106:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:107: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:739:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_serInitialize.cpp:740: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