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.001639/0.001643, allocations: 183.9 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 2.003/2.003, 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.00119/0.00119, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2754/0.2754, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005123/0.0005121, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1144, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4916/0.606, allocations: 95 MB / 0.5607 GB, free: 4.504 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002454/0.6085, allocations: 0.8695 MB / 0.5615 GB, free: 4.031 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06059/0.6692, allocations: 15 MB / 0.5762 GB, free: 7.531 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.6692, allocations: 0 / 0.5762 GB, free: 7.531 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.394e-05/0.6693, allocations: 8 kB / 0.5762 GB, free: 7.523 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0014/0.6707, allocations: 0.6103 MB / 0.5768 GB, free: 6.887 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.6708, allocations: 12.03 kB / 0.5768 GB, free: 6.875 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.6709, allocations: 51.86 kB / 0.5768 GB, free: 6.824 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001278/0.6722, allocations: 103.5 kB / 0.5769 GB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009393/0.6731, allocations: 369.7 kB / 0.5773 GB, free: 6.363 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.6732, allocations: 15.38 kB / 0.5773 GB, free: 6.355 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.058e-05/0.6733, allocations: 19.25 kB / 0.5773 GB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009137/0.6742, allocations: 360.7 kB / 0.5777 GB, free: 6.055 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.6742, allocations: 3.938 kB / 0.5777 GB, free: 6.051 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.6743, allocations: 11.5 kB / 0.5777 GB, free: 6.043 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.977e-05/0.6744, allocations: 19.05 kB / 0.5777 GB, free: 6.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.6755, allocations: 425.8 kB / 0.5781 GB, free: 5.719 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/0.6786, allocations: 1.599 MB / 0.5797 GB, free: 4.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.6799, allocations: 353.3 kB / 0.58 GB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.68, allocations: 4.812 kB / 0.58 GB, free: 4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005709/0.6806, allocations: 208 kB / 0.5802 GB, free: 3.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.076e-06/0.6806, allocations: 0 / 0.5802 GB, free: 3.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001341/0.6819, allocations: 410.9 kB / 0.5806 GB, free: 3.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.6821, allocations: 144.1 kB / 0.5807 GB, free: 3.352 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005895/0.6827, allocations: 292.9 kB / 0.581 GB, free: 3.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.942e-05/0.6828, allocations: 36.14 kB / 0.581 GB, free: 3.074 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.683, allocations: 230.9 kB / 0.5813 GB, free: 2.879 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.6831, allocations: 88.02 kB / 0.5814 GB, free: 2.805 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.6831, allocations: 3.25 kB / 0.5814 GB, free: 2.805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.6833, allocations: 322.8 kB / 0.5817 GB, free: 2.484 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/0.6836, allocations: 102.8 kB / 0.5818 GB, free: 2.418 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.684, allocations: 198 kB / 0.5819 GB, free: 2.234 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.6845, allocations: 132 kB / 0.5821 GB, free: 2.156 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.6845, allocations: 4 kB / 0.5821 GB, free: 2.152 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009689/0.6855, allocations: 350 kB / 0.5824 GB, free: 1.898 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.6855, allocations: 8 kB / 0.5824 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.6855, allocations: 320 / 0.5824 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.6856, allocations: 8 kB / 0.5824 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/0.6861, allocations: 67.84 kB / 0.5825 GB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.6861, allocations: 11.92 kB / 0.5825 GB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/0.6864, allocations: 34.39 kB / 0.5825 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/0.6865, allocations: 8 kB / 0.5825 GB, free: 1.77 MB / 378.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 () * Number of clocked 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.0003679/0.6869, allocations: 184 kB / 0.5827 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.821e-05/0.687, allocations: 27.7 kB / 0.5827 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.6882, allocations: 398.3 kB / 0.5831 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.6882, allocations: 4 kB / 0.5831 GB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.6883, allocations: 3.938 kB / 0.5831 GB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.6883, allocations: 7.984 kB / 0.5831 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.6902, allocations: 0.8469 MB / 0.584 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.6902, allocations: 0 / 0.584 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004296/0.6907, allocations: 63.41 kB / 0.584 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.417e-05/0.6907, allocations: 4 kB / 0.584 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.913e-05/0.6907, allocations: 7.75 kB / 0.584 GB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.6908, allocations: 3.984 kB / 0.584 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.6908, allocations: 3.953 kB / 0.584 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.6919, allocations: 490.8 kB / 0.5845 GB, free: 76 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.6921, allocations: 123.8 kB / 0.5846 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.6923, allocations: 11.2 kB / 0.5846 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.6925, allocations: 15.05 kB / 0.5847 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.6926, allocations: 23.95 kB / 0.5847 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.6927, allocations: 11.56 kB / 0.5847 GB, free: 15.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000439/0.6931, allocations: 237.2 kB / 0.5849 GB, free: 15.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6932, allocations: 4 kB / 0.5849 GB, free: 15.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006826/0.6939, allocations: 105.4 kB / 0.585 GB, free: 15.62 MB / 394.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) * Number of clocked states: 0 () * 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.002788/0.6967, allocations: 1.526 MB / 0.5865 GB, free: 14.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009368/0.6976, allocations: 276.6 kB / 0.5868 GB, free: 14.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.6977, allocations: 0 / 0.5868 GB, free: 14.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003994/0.6981, allocations: 151.3 kB / 0.5869 GB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.6987, allocations: 50.75 kB / 0.587 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.7042, allocations: 3.482 MB / 0.5904 GB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005484/0.7048, allocations: 0.8095 MB / 0.5912 GB, free: 9.832 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.7052, allocations: 117.2 kB / 0.5913 GB, free: 9.781 MB / 394.7 MB Notification: Performance of SimCode: time 1.864e-06/0.7052, allocations: 4 kB / 0.5913 GB, free: 9.777 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/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:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp17; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:96: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:590:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp31; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:591: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