Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.001592/0.001597, allocations: 188.1 kB / 15.77 MB, free: 5.984 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.027/2.027, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001117/0.001116, allocations: 94.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2753/0.2753, allocations: 38.06 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004779/0.0004781, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1099, allocations: 56.34 MB / 479.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007565/0.1175, allocations: 4.513 MB / 483.6 MB, free: 13.4 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005617/0.1232, allocations: 2.41 MB / 486.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005409/0.1238, allocations: 19.88 kB / 486.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.1241, allocations: 79.5 kB / 486.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001594/0.1257, allocations: 350.8 kB / 486.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.1268, allocations: 215.4 kB / 486.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009358/0.1278, allocations: 387.2 kB / 487.1 MB, free: 9.945 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.1294, allocations: 0.5461 MB / 487.6 MB, free: 9.383 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006211/0.13, allocations: 219.2 kB / 487.8 MB, free: 9.168 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.1305, allocations: 199.2 kB / 488 MB, free: 8.973 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.568e-05/0.1306, allocations: 23.94 kB / 488.1 MB, free: 8.949 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.1317, allocations: 319.4 kB / 488.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002736/0.132, allocations: 159.6 kB / 488.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.1322, allocations: 113.5 kB / 488.6 MB, free: 8.363 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.1334, allocations: 0.5338 MB / 489.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1335, allocations: 4 kB / 489.2 MB, free: 7.824 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1335, allocations: 0 / 489.2 MB, free: 7.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.1335, allocations: 0 / 489.2 MB, free: 7.824 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001554/0.1351, allocations: 0.6902 MB / 489.9 MB, free: 7.086 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.1351, allocations: 8.031 kB / 489.9 MB, free: 7.078 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.1353, allocations: 90.52 kB / 490 MB, free: 6.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00264/0.138, allocations: 227.2 kB / 490.2 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008941/0.1389, allocations: 353.2 kB / 490.5 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.139, allocations: 29 kB / 490.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.1391, allocations: 43.98 kB / 490.6 MB, free: 6.297 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.1407, allocations: 0.6185 MB / 491.2 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.1408, allocations: 7.891 kB / 491.2 MB, free: 5.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-05/0.1409, allocations: 23.94 kB / 491.3 MB, free: 5.621 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.843e-05/0.141, allocations: 32.98 kB / 491.3 MB, free: 5.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.1426, allocations: 0.6011 MB / 491.9 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005804/0.1485, allocations: 2.265 MB / 494.2 MB, free: 2.605 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.1497, allocations: 0.4908 MB / 494.6 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.495e-05/0.1497, allocations: 4.062 kB / 494.6 MB, free: 2.074 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.1498, allocations: 42.5 kB / 494.7 MB, free: 2.023 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.487e-06/0.1498, allocations: 0 / 494.7 MB, free: 2.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.005751/0.1556, allocations: 1.686 MB / 496.4 MB, free: 268 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.1557, allocations: 85.09 kB / 496.5 MB, free: 164 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.1562, allocations: 278.9 kB / 496.7 MB, free: 15.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-05/0.1563, allocations: 33.7 kB / 496.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.1565, allocations: 282.5 kB / 497 MB, free: 15.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/0.1567, allocations: 153.8 kB / 497.2 MB, free: 15.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.1568, allocations: 12 kB / 497.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1569, allocations: 330.8 kB / 497.5 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000474/0.1574, allocations: 177 kB / 497.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.158, allocations: 294.3 kB / 498 MB, free: 14.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006406/0.1587, allocations: 207.9 kB / 498.2 MB, free: 14.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.1587, allocations: 7.984 kB / 498.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002019/0.1607, allocations: 0.6578 MB / 498.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.1608, allocations: 4 kB / 498.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.1608, allocations: 4 kB / 498.9 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009782/0.1618, allocations: 180.9 kB / 499 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000705/0.1625, allocations: 99.81 kB / 499.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005545/0.1681, allocations: 2.576 MB / 0.49 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000483/0.1686, allocations: 23.92 kB / 0.49 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.1687, allocations: 20 kB / 0.49 GB, free: 10.64 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003685/0.169, allocations: 201.6 kB / 0.4902 GB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.725e-05/0.1692, allocations: 31.62 kB / 0.4902 GB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.1712, allocations: 0.6412 MB / 0.4908 GB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.1712, allocations: 7.984 kB / 0.4909 GB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.1712, allocations: 4.109 kB / 0.4909 GB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.1713, allocations: 11.92 kB / 0.4909 GB, free: 9.723 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003695/0.175, allocations: 1.347 MB / 0.4922 GB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.175, allocations: 4.062 kB / 0.4922 GB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006936/0.1757, allocations: 79.89 kB / 0.4923 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007877/0.1765, allocations: 140.7 kB / 0.4924 GB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.037e-05/0.1766, allocations: 11.98 kB / 0.4924 GB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004734/0.1813, allocations: 2.369 MB / 0.4947 GB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1814, allocations: 0 / 0.4947 GB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.184, allocations: 0.9815 MB / 0.4957 GB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.1843, allocations: 112.8 kB / 0.4958 GB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.014e-05/0.1844, allocations: 8 kB / 0.4958 GB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003732/0.1847, allocations: 19.98 kB / 0.4958 GB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.1849, allocations: 31.91 kB / 0.4958 GB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.1849, allocations: 12 kB / 0.4959 GB, free: 4.328 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003209/0.1853, allocations: 197.9 kB / 0.496 GB, free: 4.137 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1853, allocations: 0 / 0.496 GB, free: 4.137 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009155/0.1862, allocations: 140 kB / 0.4962 GB, free: 4 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 0 * Non-linear torn systems: 1 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003038/0.1893, allocations: 1.737 MB / 0.4979 GB, free: 2.215 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.1914, allocations: 0.6619 MB / 0.4985 GB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.1914, allocations: 0 / 0.4985 GB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.1926, allocations: 423 kB / 0.4989 GB, free: 1.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.1932, allocations: 60.31 kB / 0.499 GB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008259/0.2015, allocations: 5.146 MB / 0.504 GB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006575/0.2022, allocations: 0.8793 MB / 0.5049 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004023/0.2026, allocations: 155.3 kB / 0.505 GB, free: 10.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2026, allocations: 4 kB / 0.505 GB, free: 10.73 MB / 362.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_Generic_Test_GeneratorTest2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2CalcHelperMain.cpp:32: ./OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2Jacobian.cpp:117:56: error: use of undeclared identifier 'fixedLoad_P_terminal_P_i_P_SeedNLSJac1_' _NLSJac1jac_y(2) = ((-dot_array(/*t4*/tmp33, fixedLoad_P_terminal_P_i_P_SeedNLSJac1_)) - dot_array(/*t4*/tmp34, _fixedLoad_P_terminal_P_i_)); ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2FMU.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 1 error generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest2CalcHelperMain.o] Error 1