Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.CityTest.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.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTest",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.002258/0.002258, allocations: 185.8 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.012/2.012, 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.001122/0.001121, allocations: 86.66 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2715/0.2715, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.867e-05/3.878e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4812/0.5957, allocations: 94.92 MB / 0.5548 GB, free: 8.766 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002612/0.5983, allocations: 0.6831 MB / 0.5555 GB, free: 8.082 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06494/0.6633, allocations: 14.93 MB / 0.5701 GB, free: 9.012 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6634, allocations: 0 / 0.5701 GB, free: 9.012 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.312e-05/0.6635, allocations: 4 kB / 0.5701 GB, free: 9.008 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001364/0.6648, allocations: 0.5618 MB / 0.5706 GB, free: 8.398 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/0.6649, allocations: 16.02 kB / 0.5706 GB, free: 8.383 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.6651, allocations: 54.48 kB / 0.5707 GB, free: 8.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.6663, allocations: 107.5 kB / 0.5708 GB, free: 8.215 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008977/0.6672, allocations: 346.7 kB / 0.5711 GB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.6673, allocations: 20.36 kB / 0.5711 GB, free: 7.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.6674, allocations: 16 kB / 0.5711 GB, free: 7.805 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008912/0.6683, allocations: 356.7 kB / 0.5715 GB, free: 7.422 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.6683, allocations: 0 / 0.5715 GB, free: 7.422 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.6684, allocations: 8 kB / 0.5715 GB, free: 7.414 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.623e-05/0.6684, allocations: 24.36 kB / 0.5715 GB, free: 7.391 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.6696, allocations: 436.3 kB / 0.5719 GB, free: 6.961 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003186/0.6728, allocations: 1.601 MB / 0.5735 GB, free: 5.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.674, allocations: 341.1 kB / 0.5738 GB, free: 4.898 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.6744, allocations: 114.4 kB / 0.5739 GB, free: 4.781 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.6744, allocations: 7.984 kB / 0.5739 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004926/0.6749, allocations: 198.6 kB / 0.5741 GB, free: 4.559 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.206e-06/0.6749, allocations: 0 / 0.5741 GB, free: 4.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009524/0.6759, allocations: 305.2 kB / 0.5744 GB, free: 4.254 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.676, allocations: 140.4 kB / 0.5746 GB, free: 4.086 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.6766, allocations: 295.4 kB / 0.5748 GB, free: 3.789 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.6767, allocations: 33.7 kB / 0.5749 GB, free: 3.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.6769, allocations: 230.7 kB / 0.5751 GB, free: 3.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.6771, allocations: 83.05 kB / 0.5752 GB, free: 3.438 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-05/0.6771, allocations: 11.94 kB / 0.5752 GB, free: 3.426 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.6773, allocations: 326.8 kB / 0.5755 GB, free: 3.098 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.6776, allocations: 92.55 kB / 0.5756 GB, free: 3.004 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.6779, allocations: 191.4 kB / 0.5758 GB, free: 2.781 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003646/0.6783, allocations: 139.8 kB / 0.5759 GB, free: 2.645 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.6783, allocations: 0 / 0.5759 GB, free: 2.645 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009116/0.6793, allocations: 353.1 kB / 0.5762 GB, free: 2.293 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.6793, allocations: 8 kB / 0.5762 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.6793, allocations: 4 kB / 0.5762 GB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.4e-05/0.6794, allocations: 4.312 kB / 0.5762 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.6799, allocations: 71.91 kB / 0.5763 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.6799, allocations: 4 kB / 0.5763 GB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.6803, allocations: 27.73 kB / 0.5763 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.6803, allocations: 11.98 kB / 0.5764 GB, free: 2.164 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.6805, allocations: 122.8 kB / 0.5765 GB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-05/0.6806, allocations: 27.62 kB / 0.5765 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.6818, allocations: 399.6 kB / 0.5769 GB, free: 1.613 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.6818, allocations: 4 kB / 0.5769 GB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6818, allocations: 0 / 0.5769 GB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.6818, allocations: 7.984 kB / 0.5769 GB, free: 1.602 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.6836, allocations: 0.8303 MB / 0.5777 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.6837, allocations: 4 kB / 0.5777 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.6842, allocations: 63.84 kB / 0.5778 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.6842, allocations: 4 kB / 0.5778 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.6842, allocations: 8 kB / 0.5778 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.6842, allocations: 4 kB / 0.5778 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.6843, allocations: 3.953 kB / 0.5778 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.6853, allocations: 494 kB / 0.5783 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.6855, allocations: 120.7 kB / 0.5784 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.395e-05/0.6856, allocations: 11.94 kB / 0.5784 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.6859, allocations: 8 kB / 0.5784 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.053e-05/0.686, allocations: 27.95 kB / 0.5784 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.6861, allocations: 8 kB / 0.5784 GB, free: 15.92 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004379/0.6865, allocations: 247 kB / 0.5787 GB, free: 15.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6865, allocations: 0 / 0.5787 GB, free: 15.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006022/0.6871, allocations: 91.94 kB / 0.5788 GB, free: 15.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002583/0.6897, allocations: 1.487 MB / 0.5802 GB, free: 14.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008335/0.6906, allocations: 273.2 kB / 0.5805 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.6906, allocations: 0 / 0.5805 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003676/0.691, allocations: 144.5 kB / 0.5806 GB, free: 13.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.6916, allocations: 56.84 kB / 0.5807 GB, free: 13.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.6935, allocations: 0.6195 MB / 0.5813 GB, free: 12.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005491/0.6941, allocations: 0.8079 MB / 0.582 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.6944, allocations: 111.4 kB / 0.5822 GB, free: 12.03 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6945, allocations: 0 / 0.5822 GB, free: 12.03 MB / 426.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_PowerWorld_Test_CityTestCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.cpp:29: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitializeParameter.cpp:83:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp46; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitializeParameter.cpp:84:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Examples/PowerWorld/Resources/", tmp46); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:98:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp17; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:99:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Examples/PowerWorld/Resources/", tmp17); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:593:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp31; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:594:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp31); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTest.cpp:1068:31: error: use of undeclared identifier 'tmp12' _city_P_data_P_fileName_ = (tmp12 + "LoadData.txt"); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestFMU.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_PowerWorld_Test_CityTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.o] Error 1