Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.001623/0.001627, allocations: 184.3 kB / 15.77 MB, free: 6.375 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.008/2.008, 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.001087/0.001086, allocations: 98.84 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.261/0.261, allocations: 38.06 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004516, allocations: 12 kB / 422.8 MB, free: 26.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1106, allocations: 56.34 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003007/0.1137, allocations: 1.717 MB / 480.8 MB, free: 220 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.1149, allocations: 0.5234 MB / 481.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.009e-05/0.115, allocations: 4 kB / 481.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.1152, allocations: 15.86 kB / 481.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 5.435e-05/0.1153, allocations: 11.97 kB / 481.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1156, allocations: 47.94 kB / 481.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 8.541e-05/0.1157, allocations: 35.88 kB / 481.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.271e-05/0.1158, allocations: 7.984 kB / 481.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.1159, allocations: 19.92 kB / 481.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.254e-05/0.1159, allocations: 11.94 kB / 481.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.116, allocations: 4 kB / 481.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.1161, allocations: 47.92 kB / 481.6 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.349e-05/0.1162, allocations: 23.92 kB / 481.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.683e-05/0.1163, allocations: 33.64 kB / 481.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.1164, allocations: 80.12 kB / 481.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1165, allocations: 0 / 481.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.889e-06/0.1165, allocations: 4 kB / 481.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1165, allocations: 3.938 kB / 481.7 MB, free: 15.34 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005044/0.117, allocations: 424.6 kB / 482.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.1171, allocations: 12.03 kB / 482.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.1171, allocations: 34.56 kB / 482.2 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.1172, allocations: 11.86 kB / 482.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.1174, allocations: 190.8 kB / 482.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.1174, allocations: 0 / 482.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.1174, allocations: 0 / 482.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.1176, allocations: 97.61 kB / 482.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1177, allocations: 0 / 482.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.228e-06/0.1177, allocations: 0 / 482.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.1177, allocations: 0 / 482.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001063/0.1178, allocations: 59.97 kB / 482.5 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000231/0.118, allocations: 181.5 kB / 482.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001605/0.1182, allocations: 94.56 kB / 482.8 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.657e-06/0.1182, allocations: 0 / 482.8 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.1183, allocations: 42.48 kB / 482.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.1183, allocations: 4.031 kB / 482.8 MB, free: 14.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006581/0.119, allocations: 388.3 kB / 483.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.1191, allocations: 101 kB / 483.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.1192, allocations: 134 kB / 483.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1193, allocations: 25.7 kB / 483.5 MB, free: 13.33 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.032e-05/0.1193, allocations: 159 kB / 483.6 MB, free: 13.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.158e-05/0.1194, allocations: 66.92 kB / 483.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.1195, allocations: 8.031 kB / 483.7 MB, free: 13.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1196, allocations: 322.8 kB / 484 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.576e-05/0.1197, allocations: 55.97 kB / 484.1 MB, free: 12.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.1198, allocations: 59.92 kB / 484.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001877/0.12, allocations: 125.6 kB / 484.3 MB, free: 12.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1201, allocations: 0 / 484.3 MB, free: 12.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003596/0.1204, allocations: 215.9 kB / 484.5 MB, free: 12.31 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.394e-05/0.1205, allocations: 64.62 kB / 484.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1206, allocations: 0 / 484.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1206, allocations: 4.062 kB / 484.5 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.753e-06/0.1206, allocations: 4 kB / 484.5 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.1206, allocations: 0 / 484.5 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.351e-05/0.1207, allocations: 19.83 kB / 484.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/0.1207, allocations: 4 kB / 484.6 MB, free: 12.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.000224/0.121, allocations: 199.4 kB / 484.8 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.121, allocations: 15.81 kB / 484.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.008e-05/0.121, allocations: 9.188 kB / 484.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.1211, allocations: 0 / 484.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1211, allocations: 4 kB / 484.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1211, allocations: 0 / 484.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.1213, allocations: 205.4 kB / 485 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1213, allocations: 0 / 485 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.487e-06/0.1213, allocations: 3.984 kB / 485 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1213, allocations: 0 / 485 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.1214, allocations: 7.938 kB / 485 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1214, allocations: 0 / 485 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1214, allocations: 0 / 485 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009217/0.1223, allocations: 0.5099 MB / 485.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.147e-05/0.1224, allocations: 88.86 kB / 485.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.1225, allocations: 8 kB / 485.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.724e-05/0.1225, allocations: 0 / 485.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.1226, allocations: 8 kB / 485.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.1226, allocations: 4 kB / 485.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.1227, allocations: 103.2 kB / 485.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1227, allocations: 0 / 485.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003497/0.1231, allocations: 44 kB / 485.8 MB, free: 10.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.001317/0.1244, allocations: 1.063 MB / 486.8 MB, free: 9.812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.1255, allocations: 0.6906 MB / 487.5 MB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.1256, allocations: 4 kB / 487.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007816/0.1263, allocations: 0.5734 MB / 488.1 MB, free: 8.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.1266, allocations: 24.08 kB / 488.1 MB, free: 8.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.1291, allocations: 1.297 MB / 489.4 MB, free: 7.145 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.1296, allocations: 0.7241 MB / 490.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.4e-05/0.1296, allocations: 35.42 kB / 490.2 MB, free: 6.363 MB / 330.7 MB Notification: Performance of SimCode: time 3.316e-06/0.1296, allocations: 0 / 490.2 MB, free: 6.363 MB / 330.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_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2Functions.cpp:37:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp7; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2FMU.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_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.o] Error 1