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.002286/0.002286, allocations: 184.4 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.993/1.993, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001155/0.001154, allocations: 86.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2868/0.2868, allocations: 38.06 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004572/0.0004572, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1072, allocations: 56.34 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4909/0.5981, allocations: 102.7 MB / 0.5682 GB, free: 12.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002629/0.6008, allocations: 0.8647 MB / 0.5691 GB, free: 12.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07729/0.6781, allocations: 16.75 MB / 0.5854 GB, free: 13.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6782, allocations: 0 / 0.5854 GB, free: 13.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.811e-05/0.6783, allocations: 12 kB / 0.5854 GB, free: 13.84 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002565/0.6809, allocations: 0.8435 MB / 0.5863 GB, free: 12.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.6809, allocations: 8.031 kB / 0.5863 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002229/0.6812, allocations: 85.91 kB / 0.5864 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.6814, allocations: 67.19 kB / 0.5864 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002957/0.6843, allocations: 0.7686 MB / 0.5872 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.236e-05/0.6844, allocations: 34.5 kB / 0.5872 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.6846, allocations: 46.38 kB / 0.5872 GB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.6859, allocations: 0.5156 MB / 0.5877 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.686, allocations: 0 / 0.5877 GB, free: 11.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.191e-05/0.6861, allocations: 22.38 kB / 0.5878 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.865e-05/0.6861, allocations: 11.95 kB / 0.5878 GB, free: 11.69 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009137/0.6871, allocations: 332.1 kB / 0.5881 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/0.6915, allocations: 2.082 MB / 0.5901 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006821/0.6923, allocations: 224.8 kB / 0.5903 GB, free: 9.406 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.6923, allocations: 8.047 kB / 0.5904 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004036/0.6928, allocations: 165.4 kB / 0.5905 GB, free: 9.246 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.876e-06/0.6928, allocations: 0 / 0.5905 GB, free: 9.246 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.002794/0.6956, allocations: 0.9257 MB / 0.5914 GB, free: 8.406 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.724e-05/0.6957, allocations: 132.5 kB / 0.5915 GB, free: 8.246 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000793/0.6965, allocations: 374 kB / 0.5919 GB, free: 7.961 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.82e-05/0.6966, allocations: 40.45 kB / 0.5919 GB, free: 7.918 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.6969, allocations: 336.2 kB / 0.5923 GB, free: 7.648 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.6971, allocations: 87.94 kB / 0.5923 GB, free: 7.574 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.6971, allocations: 11.81 kB / 0.5924 GB, free: 7.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.6973, allocations: 318.8 kB / 0.5927 GB, free: 7.254 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.6976, allocations: 88.64 kB / 0.5927 GB, free: 7.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/0.698, allocations: 228.1 kB / 0.593 GB, free: 6.953 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.6984, allocations: 121.4 kB / 0.5931 GB, free: 6.879 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.6984, allocations: 3.953 kB / 0.5931 GB, free: 6.875 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001413/0.6998, allocations: 412.1 kB / 0.5935 GB, free: 6.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.6999, allocations: 4 kB / 0.5935 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.6999, allocations: 15.89 kB / 0.5935 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006961/0.7006, allocations: 93.58 kB / 0.5936 GB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.7012, allocations: 75.69 kB / 0.5937 GB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/0.7044, allocations: 1.718 MB / 0.5953 GB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.705, allocations: 18.81 kB / 0.5953 GB, free: 4.734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.159e-05/0.7051, allocations: 23.23 kB / 0.5954 GB, free: 4.715 MB / 394.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 () * Number of clocked 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.0004601/0.7055, allocations: 211.6 kB / 0.5956 GB, free: 4.543 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.7057, allocations: 39.53 kB / 0.5956 GB, free: 4.504 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009659/0.7067, allocations: 287 kB / 0.5959 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.7067, allocations: 7.984 kB / 0.5959 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.7067, allocations: 0 / 0.5959 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.7067, allocations: 0 / 0.5959 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.7089, allocations: 0.7805 MB / 0.5967 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.7089, allocations: 0 / 0.5967 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/0.7095, allocations: 42.48 kB / 0.5967 GB, free: 3.574 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004057/0.7099, allocations: 49.61 kB / 0.5967 GB, free: 3.531 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-05/0.7099, allocations: 7 kB / 0.5967 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002018/0.712, allocations: 1.454 MB / 0.5982 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.712, allocations: 4.406 kB / 0.5982 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.7133, allocations: 491 kB / 0.5986 GB, free: 1.621 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/0.7137, allocations: 139.2 kB / 0.5988 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.449e-05/0.7138, allocations: 7.438 kB / 0.5988 GB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.7142, allocations: 23.36 kB / 0.5988 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.7143, allocations: 19.66 kB / 0.5988 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.7144, allocations: 8 kB / 0.5988 GB, free: 1.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005743/0.715, allocations: 295.1 kB / 0.5991 GB, free: 1.203 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.715, allocations: 0 / 0.5991 GB, free: 1.203 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000861/0.7158, allocations: 132.7 kB / 0.5992 GB, free: 1.09 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 () * Number of clocked 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.002945/0.7188, allocations: 1.498 MB / 0.6007 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.7202, allocations: 378.2 kB / 0.6011 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.7202, allocations: 0 / 0.6011 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006409/0.7209, allocations: 239.9 kB / 0.6013 GB, free: 15.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.7221, allocations: 128 kB / 0.6014 GB, free: 15.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008946/0.731, allocations: 5.826 MB / 0.6071 GB, free: 9.512 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006631/0.7318, allocations: 0.8886 MB / 0.608 GB, free: 8.609 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.7322, allocations: 177.5 kB / 0.6081 GB, free: 8.555 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7322, allocations: 0 / 0.6081 GB, free: 8.555 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_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:106:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.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_parInitialize.cpp:783:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp19; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_parInitialize.cpp:784: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