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.001513/0.001513, 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.024/2.024, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001074/0.001073, allocations: 94.64 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2511/0.2511, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.662e-05/2.657e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5222/0.6292, allocations: 102 MB / 0.5549 GB, free: 8.543 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00197/0.6313, allocations: 0.5805 MB / 0.5555 GB, free: 8.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0853/0.7166, allocations: 16.55 MB / 0.5717 GB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.7167, allocations: 0 / 0.5717 GB, free: 11.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001386/0.7168, allocations: 15.94 kB / 0.5717 GB, free: 11.12 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.003523/0.7204, allocations: 0.772 MB / 0.5724 GB, free: 10.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.523e-05/0.7205, allocations: 8.031 kB / 0.5724 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000452/0.721, allocations: 67.2 kB / 0.5725 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004413/0.7254, allocations: 0.7518 MB / 0.5732 GB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.698e-05/0.7255, allocations: 16 kB / 0.5732 GB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.7258, allocations: 27.91 kB / 0.5733 GB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001475/0.7273, allocations: 280.3 kB / 0.5735 GB, free: 9.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.7291, allocations: 465.1 kB / 0.574 GB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.837e-05/0.7292, allocations: 3.938 kB / 0.574 GB, free: 9.008 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.036e-05/0.7293, allocations: 4 kB / 0.574 GB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.765e-05/0.7294, allocations: 11.95 kB / 0.574 GB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006601/0.736, allocations: 1.996 MB / 0.576 GB, free: 7.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009185/0.737, allocations: 207.3 kB / 0.5761 GB, free: 7.016 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.7373, allocations: 80.62 kB / 0.5762 GB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.137e-05/0.7374, allocations: 7.938 kB / 0.5762 GB, free: 6.941 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000523/0.7379, allocations: 151.4 kB / 0.5764 GB, free: 6.805 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 4.699e-06/0.738, allocations: 0 / 0.5764 GB, free: 6.805 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.0037/0.7417, allocations: 0.8144 MB / 0.5772 GB, free: 6.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.7419, allocations: 132.5 kB / 0.5773 GB, free: 5.859 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009396/0.7429, allocations: 337.6 kB / 0.5776 GB, free: 5.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.743, allocations: 25.7 kB / 0.5776 GB, free: 5.559 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003787/0.7434, allocations: 346.1 kB / 0.578 GB, free: 5.277 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.7436, allocations: 88.69 kB / 0.5781 GB, free: 5.203 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.7437, allocations: 0 / 0.5781 GB, free: 5.203 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.7439, allocations: 322 kB / 0.5784 GB, free: 4.883 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.7442, allocations: 74.73 kB / 0.5784 GB, free: 4.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005043/0.7448, allocations: 203 kB / 0.5786 GB, free: 4.617 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004809/0.7453, allocations: 108.3 kB / 0.5787 GB, free: 4.547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.7453, allocations: 0 / 0.5787 GB, free: 4.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002025/0.7474, allocations: 369.1 kB / 0.5791 GB, free: 4.246 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.7475, allocations: 12.09 kB / 0.5791 GB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.7475, allocations: 4 kB / 0.5791 GB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.7486, allocations: 97.75 kB / 0.5792 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008119/0.7494, allocations: 78.53 kB / 0.5793 GB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004342/0.7538, allocations: 1.627 MB / 0.5809 GB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008855/0.7548, allocations: 16.06 kB / 0.5809 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.697e-05/0.7549, allocations: 16 kB / 0.5809 GB, free: 2.488 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_par.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: 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.0003123/0.7552, allocations: 127.8 kB / 0.581 GB, free: 2.359 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001378/0.7566, allocations: 252.4 kB / 0.5813 GB, free: 2.148 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.7569, allocations: 43.44 kB / 0.5813 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.7582, allocations: 249.2 kB / 0.5815 GB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.842e-05/0.7584, allocations: 4 kB / 0.5815 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.7585, allocations: 7.938 kB / 0.5815 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.7585, allocations: 7.938 kB / 0.5816 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.7614, allocations: 0.6835 MB / 0.5822 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.7615, allocations: 15.83 kB / 0.5822 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008044/0.7623, allocations: 39.98 kB / 0.5823 GB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005573/0.7629, allocations: 44.56 kB / 0.5823 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.429e-05/0.763, allocations: 11.86 kB / 0.5823 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002858/0.7659, allocations: 1.385 MB / 0.5837 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/0.7659, allocations: 0 / 0.5837 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.7677, allocations: 479.5 kB / 0.5841 GB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000434/0.7682, allocations: 126.7 kB / 0.5843 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/0.7684, allocations: 11.62 kB / 0.5843 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006345/0.7691, allocations: 11.98 kB / 0.5843 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.7692, allocations: 19.92 kB / 0.5843 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.7693, allocations: 11.94 kB / 0.5843 GB, free: 15.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007074/0.77, allocations: 254.4 kB / 0.5846 GB, free: 15.01 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.7701, allocations: 0 / 0.5846 GB, free: 15.01 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001592/0.7717, allocations: 115.4 kB / 0.5847 GB, free: 14.9 MB / 394.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.003937/0.7757, allocations: 1.408 MB / 0.586 GB, free: 13.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.7775, allocations: 358 kB / 0.5864 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.7775, allocations: 0 / 0.5864 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008911/0.7784, allocations: 215.5 kB / 0.5866 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.7802, allocations: 114 kB / 0.5867 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005433/0.7858, allocations: 1.038 MB / 0.5877 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009684/0.7868, allocations: 0.8902 MB / 0.5886 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005807/0.7874, allocations: 175.6 kB / 0.5887 GB, free: 11.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.412e-06/0.7875, allocations: 3.938 kB / 0.5887 GB, free: 11.06 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_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:111:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp60; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitializeParameter.cpp:112: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/", tmp60); ~~~~~~~~~~ ^ 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:772:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:773: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/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_parCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parCalcHelperMain.o] Error 1