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.002788/0.002787, allocations: 180 kB / 15.76 MB, free: 6.344 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.169/2.169, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001233/0.001233, allocations: 98.84 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2951/0.2951, allocations: 38.05 MB / 356.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004816/0.0004812, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 56.33 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5025/0.6213, allocations: 87.05 MB / 0.5529 GB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.6217, allocations: 78.89 kB / 0.553 GB, free: 11.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007321/0.629, allocations: 1.668 MB / 0.5546 GB, free: 9.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6291, allocations: 0 / 0.5546 GB, free: 9.621 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.6291, allocations: 0 / 0.5546 GB, free: 9.621 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003754/0.6295, allocations: 438.3 kB / 0.555 GB, free: 9.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.6295, allocations: 8.031 kB / 0.555 GB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.941e-05/0.6296, allocations: 50.11 kB / 0.5551 GB, free: 9.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.6296, allocations: 11.81 kB / 0.5551 GB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.6298, allocations: 185.6 kB / 0.5553 GB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.6298, allocations: 3.938 kB / 0.5553 GB, free: 8.855 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.33e-05/0.6299, allocations: 4 kB / 0.5553 GB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.6301, allocations: 88.72 kB / 0.5554 GB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.6301, allocations: 0 / 0.5554 GB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.6301, allocations: 0 / 0.5554 GB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.6301, allocations: 6.406 kB / 0.5554 GB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.457e-05/0.6302, allocations: 59.59 kB / 0.5554 GB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001591/0.6304, allocations: 185 kB / 0.5556 GB, free: 8.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.6305, allocations: 98.42 kB / 0.5557 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.6305, allocations: 0 / 0.5557 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.6306, allocations: 34.5 kB / 0.5557 GB, free: 8.383 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.6306, allocations: 0 / 0.5557 GB, free: 8.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005427/0.6311, allocations: 395.6 kB / 0.5561 GB, free: 8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.6312, allocations: 96.16 kB / 0.5562 GB, free: 7.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.6313, allocations: 120 kB / 0.5563 GB, free: 7.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.6314, allocations: 25.7 kB / 0.5563 GB, free: 7.738 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.6314, allocations: 161.5 kB / 0.5565 GB, free: 7.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.14e-05/0.6315, allocations: 84.28 kB / 0.5566 GB, free: 7.516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.6315, allocations: 0 / 0.5566 GB, free: 7.516 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.567e-05/0.6316, allocations: 321.6 kB / 0.5569 GB, free: 7.199 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.705e-05/0.6317, allocations: 67.69 kB / 0.557 GB, free: 7.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.284e-05/0.6318, allocations: 54.72 kB / 0.557 GB, free: 7.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.632, allocations: 120 kB / 0.5571 GB, free: 6.988 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.632, allocations: 0 / 0.5571 GB, free: 6.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003179/0.6323, allocations: 219.9 kB / 0.5573 GB, free: 6.789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.873e-05/0.6324, allocations: 67.38 kB / 0.5574 GB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.6324, allocations: 3.938 kB / 0.5574 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.6324, allocations: 3.938 kB / 0.5574 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.713e-06/0.6325, allocations: 0 / 0.5574 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.6325, allocations: 4 kB / 0.5574 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.212e-05/0.6326, allocations: 19.89 kB / 0.5574 GB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.6326, allocations: 4 kB / 0.5574 GB, free: 6.688 MB / 362.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.0001755/0.6328, allocations: 199.2 kB / 0.5576 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.6328, allocations: 11.91 kB / 0.5576 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.6329, allocations: 9.188 kB / 0.5576 GB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6329, allocations: 0 / 0.5576 GB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6329, allocations: 0 / 0.5576 GB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.6329, allocations: 0 / 0.5576 GB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.633, allocations: 199.5 kB / 0.5578 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.633, allocations: 7.891 kB / 0.5578 GB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.6331, allocations: 4 kB / 0.5578 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.6331, allocations: 0 / 0.5578 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.6331, allocations: 4 kB / 0.5578 GB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.6331, allocations: 3.984 kB / 0.5578 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.6331, allocations: 0 / 0.5578 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007269/0.6339, allocations: 0.5056 MB / 0.5583 GB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.6339, allocations: 96.81 kB / 0.5584 GB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.634, allocations: 4.688 kB / 0.5584 GB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.081e-05/0.634, allocations: 8.031 kB / 0.5584 GB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.6341, allocations: 11.23 kB / 0.5585 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.6341, allocations: 4 kB / 0.5585 GB, free: 5.617 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.699e-05/0.6342, allocations: 101.6 kB / 0.5586 GB, free: 5.523 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6342, allocations: 0 / 0.5586 GB, free: 5.523 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003314/0.6345, allocations: 40 kB / 0.5586 GB, free: 5.484 MB / 362.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.001065/0.6356, allocations: 1.054 MB / 0.5596 GB, free: 4.469 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008266/0.6365, allocations: 0.706 MB / 0.5603 GB, free: 4.023 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6365, allocations: 0 / 0.5603 GB, free: 4.023 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005252/0.6371, allocations: 0.5627 MB / 0.5609 GB, free: 3.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.6373, allocations: 20.75 kB / 0.5609 GB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.6394, allocations: 1.297 MB / 0.5621 GB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.6397, allocations: 0.7319 MB / 0.5629 GB, free: 1.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.112e-05/0.6398, allocations: 37.17 kB / 0.5629 GB, free: 1.715 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6398, allocations: 0 / 0.5629 GB, free: 1.715 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=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_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