Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.252/2.252, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.55e-05/3.56e-05, allocations: 11.92 kB / 301.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 53.23 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.5404, allocations: 89.24 MB / 443.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002383/0.5428, allocations: 0.6852 MB / 444.5 MB, free: 11.98 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.05711/0.6, allocations: 14.33 MB / 458.8 MB, free: 13.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6, allocations: 0 / 458.8 MB, free: 13.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.081e-05/0.6, allocations: 4 kB / 458.8 MB, free: 13.52 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0011/0.6011, allocations: 0.6276 MB / 459.5 MB, free: 12.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.6012, allocations: 8.031 kB / 459.5 MB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.294e-05/0.6013, allocations: 54.55 kB / 459.5 MB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/0.6025, allocations: 111.4 kB / 459.6 MB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007738/0.6033, allocations: 341.8 kB / 460 MB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.6033, allocations: 20.36 kB / 460 MB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.6034, allocations: 24 kB / 460 MB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008597/0.6043, allocations: 360.2 kB / 460.4 MB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.6043, allocations: 0 / 460.4 MB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/0.6044, allocations: 11.98 kB / 460.4 MB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.982e-05/0.6044, allocations: 20.34 kB / 460.4 MB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.6056, allocations: 436.4 kB / 460.8 MB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002967/0.6086, allocations: 1.619 MB / 462.5 MB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.6098, allocations: 357 kB / 462.8 MB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.6101, allocations: 118.4 kB / 462.9 MB, free: 9.176 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.6101, allocations: 8.062 kB / 462.9 MB, free: 9.168 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004871/0.6106, allocations: 201.8 kB / 463.1 MB, free: 8.949 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 2.845e-06/0.6107, allocations: 0 / 463.1 MB, free: 8.949 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009663/0.6116, allocations: 317.2 kB / 463.4 MB, free: 8.633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/0.6117, allocations: 136.5 kB / 463.6 MB, free: 8.469 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/0.6123, allocations: 295.3 kB / 463.9 MB, free: 8.176 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.6124, allocations: 33.7 kB / 463.9 MB, free: 8.137 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.6125, allocations: 222.7 kB / 464.1 MB, free: 7.918 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.6126, allocations: 86.88 kB / 464.2 MB, free: 7.832 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.6127, allocations: 12.06 kB / 464.2 MB, free: 7.82 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.6128, allocations: 326.8 kB / 464.5 MB, free: 7.492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.6132, allocations: 112.3 kB / 464.6 MB, free: 7.379 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004116/0.6136, allocations: 206.3 kB / 464.8 MB, free: 7.141 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/0.614, allocations: 183.1 kB / 465 MB, free: 6.953 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.6141, allocations: 7.938 kB / 465 MB, free: 6.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001078/0.6151, allocations: 441.8 kB / 465.4 MB, free: 6.504 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.379e-05/0.6152, allocations: 37.69 kB / 465.5 MB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.6152, allocations: 0 / 465.5 MB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.6153, allocations: 4 kB / 465.5 MB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.6158, allocations: 64.22 kB / 465.6 MB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.6158, allocations: 8 kB / 465.6 MB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.6161, allocations: 27.69 kB / 465.6 MB, free: 6.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.6162, allocations: 23.98 kB / 465.6 MB, free: 6.336 MB / 394.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): 33 * Array equations: 0 * Algorithm blocks: 1 * 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.0001477/0.6163, allocations: 127.6 kB / 465.7 MB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.6164, allocations: 27.72 kB / 465.8 MB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.6176, allocations: 411.6 kB / 466.2 MB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.6176, allocations: 4 kB / 466.2 MB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.6176, allocations: 0 / 466.2 MB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.6176, allocations: 11.97 kB / 466.2 MB, free: 5.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.6194, allocations: 0.8495 MB / 467 MB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.6194, allocations: 0 / 467 MB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004178/0.6198, allocations: 55.91 kB / 467.1 MB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.267e-05/0.6198, allocations: 4 kB / 467.1 MB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.6199, allocations: 8 kB / 467.1 MB, free: 4.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.6199, allocations: 4 kB / 467.1 MB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6199, allocations: 4 kB / 467.1 MB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000984/0.6209, allocations: 0.496 MB / 467.6 MB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002358/0.6212, allocations: 148.6 kB / 467.7 MB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/0.6213, allocations: 16 kB / 467.8 MB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.6215, allocations: 11.94 kB / 467.8 MB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.251e-05/0.6216, allocations: 23.92 kB / 467.8 MB, free: 4.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.295e-05/0.6217, allocations: 19.98 kB / 467.8 MB, free: 4.012 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003815/0.6221, allocations: 231.1 kB / 468 MB, free: 3.789 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6221, allocations: 0 / 468 MB, free: 3.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006806/0.6228, allocations: 115.7 kB / 468.2 MB, free: 3.676 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) * 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.002541/0.6253, allocations: 1.527 MB / 469.7 MB, free: 2.191 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009004/0.6263, allocations: 371.4 kB / 470 MB, free: 1.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6263, allocations: 0.625 kB / 470 MB, free: 1.816 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.6267, allocations: 155.8 kB / 470.2 MB, free: 1.664 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005319/0.6272, allocations: 41.27 kB / 470.2 MB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.629, allocations: 0.6191 MB / 470.9 MB, free: 0.9609 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.6295, allocations: 0.8039 MB / 471.7 MB, free: 136 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003081/0.6298, allocations: 115.4 kB / 471.8 MB, free: 20 kB / 394.7 MB Notification: Performance of SimCode: time 8.32e-07/0.6298, allocations: 0 / 471.8 MB, free: 20 kB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/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:81:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp46; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitializeParameter.cpp:82:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/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("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 1.0.0/Examples/PowerWorld/Resources/", tmp17); ~~~~~~~~~~ ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:359:45: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_city_P_data_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:362:13: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp23 = 1.797693134862316e+308; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:655:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp34; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestInitialize.cpp:656:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT2, tmp34); ~~~~~~~~~~ ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTestCalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTest.cpp:480:47: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_city_P_data_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_CityTest.cpp:483:15: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp11 = 1.797693134862316e+308; ^ ./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/jenkins/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) { ^ 5 warnings 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