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.002042/0.002048, allocations: 182.4 kB / 8.012 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.181/2.181, 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.001586/0.001586, allocations: 90.64 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2718/0.2718, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.695e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4831/0.5908, allocations: 94.25 MB / 0.5474 GB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001959/0.5929, allocations: 0.5793 MB / 0.5479 GB, free: 10.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05202/0.6449, allocations: 14.84 MB / 0.5624 GB, free: 3.613 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.645, allocations: 0 / 0.5624 GB, free: 3.613 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.015e-05/0.645, allocations: 8 kB / 0.5624 GB, free: 3.605 MB / 362.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.0009068/0.6459, allocations: 0.5669 MB / 0.563 GB, free: 3.012 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.646, allocations: 12.03 kB / 0.563 GB, free: 3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/0.6471, allocations: 107.5 kB / 0.5631 GB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006918/0.6478, allocations: 344.6 kB / 0.5634 GB, free: 2.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.6479, allocations: 11.98 kB / 0.5635 GB, free: 2.559 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.408e-05/0.6479, allocations: 8 kB / 0.5635 GB, free: 2.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007264/0.6487, allocations: 343.4 kB / 0.5638 GB, free: 2.301 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.6493, allocations: 332.9 kB / 0.5641 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.6493, allocations: 0 / 0.5641 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.6494, allocations: 0 / 0.5641 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.089e-05/0.6494, allocations: 24.3 kB / 0.5641 GB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.6519, allocations: 1.588 MB / 0.5657 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/0.6528, allocations: 337.5 kB / 0.566 GB, free: 352 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.6531, allocations: 110.8 kB / 0.5661 GB, free: 272 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.6531, allocations: 4 kB / 0.5661 GB, free: 268 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003562/0.6535, allocations: 197.9 kB / 0.5663 GB, free: 96 kB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.745e-06/0.6535, allocations: 3.938 kB / 0.5663 GB, free: 92 kB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.0008572/0.6544, allocations: 303.5 kB / 0.5666 GB, free: 15.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.445e-05/0.6545, allocations: 132.5 kB / 0.5667 GB, free: 15.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.6549, allocations: 277.7 kB / 0.567 GB, free: 15.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.655, allocations: 32.2 kB / 0.567 GB, free: 15.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.6551, allocations: 220.4 kB / 0.5672 GB, free: 15.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.6553, allocations: 89.23 kB / 0.5673 GB, free: 15.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.6553, allocations: 0 / 0.5673 GB, free: 15.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.6554, allocations: 325.7 kB / 0.5676 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.6557, allocations: 97 kB / 0.5677 GB, free: 14.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.656, allocations: 179.5 kB / 0.5679 GB, free: 14.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003184/0.6563, allocations: 131.8 kB / 0.568 GB, free: 14.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.6564, allocations: 4 kB / 0.568 GB, free: 14.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007844/0.6571, allocations: 326.7 kB / 0.5683 GB, free: 14.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.6572, allocations: 8 kB / 0.5683 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.6572, allocations: 0 / 0.5683 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.6572, allocations: 12 kB / 0.5683 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.6577, allocations: 67.39 kB / 0.5684 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.6578, allocations: 4 kB / 0.5684 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.658, allocations: 23.69 kB / 0.5684 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.6581, allocations: 15.94 kB / 0.5685 GB, free: 14.16 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001646/0.6583, allocations: 128.9 kB / 0.5686 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007183/0.659, allocations: 297.5 kB / 0.5689 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.311e-05/0.6591, allocations: 27.62 kB / 0.5689 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009619/0.6601, allocations: 374.8 kB / 0.5692 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.6601, allocations: 4 kB / 0.5692 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.6601, allocations: 0 / 0.5692 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.6601, allocations: 8.047 kB / 0.5693 GB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.6616, allocations: 0.7896 MB / 0.57 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6616, allocations: 0 / 0.57 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/0.6621, allocations: 55.92 kB / 0.5701 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.6621, allocations: 0 / 0.5701 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.6621, allocations: 11.97 kB / 0.5701 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.6622, allocations: 7.938 kB / 0.5701 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.6622, allocations: 0 / 0.5701 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008574/0.6631, allocations: 477.1 kB / 0.5706 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/0.6632, allocations: 116.4 kB / 0.5707 GB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.62e-05/0.6633, allocations: 11.83 kB / 0.5707 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.6636, allocations: 7.938 kB / 0.5707 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.6637, allocations: 27.59 kB / 0.5707 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.6637, allocations: 11.98 kB / 0.5707 GB, free: 12.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003257/0.664, allocations: 225.8 kB / 0.5709 GB, free: 11.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6641, allocations: 0 / 0.5709 GB, free: 11.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006199/0.6647, allocations: 86.78 kB / 0.571 GB, free: 11.9 MB / 378.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 (35): * Single equations (assignments): 32 * 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.002261/0.667, allocations: 1.429 MB / 0.5724 GB, free: 10.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006956/0.6677, allocations: 260.2 kB / 0.5727 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6677, allocations: 0 / 0.5727 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.668, allocations: 140.3 kB / 0.5728 GB, free: 10.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.6686, allocations: 52.03 kB / 0.5728 GB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.6703, allocations: 0.5876 MB / 0.5734 GB, free: 9.723 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.6708, allocations: 0.8089 MB / 0.5742 GB, free: 8.902 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003037/0.6711, allocations: 118.3 kB / 0.5743 GB, free: 8.852 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6712, allocations: 0 / 0.5743 GB, free: 8.852 MB / 378.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_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:80:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp46; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitializeParameter.cpp:81: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:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp17; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:97: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:598:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp31; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:599: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:1077: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/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_PowerWorld_Test_CityTestCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.o] Error 1