Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.001733/0.001733, allocations: 182.7 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.174/2.174, 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.001278/0.001278, allocations: 94.83 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.2944/0.2944, allocations: 38.05 MB / 356.5 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004905/0.0004907, allocations: 8 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1159, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.534/0.65, allocations: 87.08 MB / 0.5529 GB, free: 11.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.6503, allocations: 80.95 kB / 0.553 GB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00695/0.6573, allocations: 1.552 MB / 0.5545 GB, free: 9.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.6574, allocations: 0 / 0.5545 GB, free: 9.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.6574, allocations: 4 kB / 0.5545 GB, free: 9.699 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003585/0.6577, allocations: 400.1 kB / 0.5549 GB, free: 9.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.6578, allocations: 8.031 kB / 0.5549 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.6579, allocations: 41.86 kB / 0.555 GB, free: 9.207 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.372e-05/0.6579, allocations: 7.906 kB / 0.555 GB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.6581, allocations: 186.7 kB / 0.5552 GB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-06/0.6581, allocations: 0 / 0.5552 GB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.6581, allocations: 0 / 0.5552 GB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.6583, allocations: 62.31 kB / 0.5552 GB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.6583, allocations: 4 kB / 0.5552 GB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.6583, allocations: 0 / 0.5552 GB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.6583, allocations: 3.984 kB / 0.5552 GB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.207e-05/0.6584, allocations: 35.72 kB / 0.5553 GB, free: 8.883 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.6585, allocations: 168.3 kB / 0.5554 GB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.246e-05/0.6587, allocations: 53.69 kB / 0.5555 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.6587, allocations: 0 / 0.5555 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.6587, allocations: 34.56 kB / 0.5555 GB, free: 8.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.6587, allocations: 0 / 0.5555 GB, free: 8.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003867/0.6591, allocations: 273.2 kB / 0.5558 GB, free: 8.301 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.6592, allocations: 89.09 kB / 0.5558 GB, free: 8.195 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.619e-05/0.6593, allocations: 114.9 kB / 0.556 GB, free: 8.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.6593, allocations: 25.7 kB / 0.556 GB, free: 8.055 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.04e-05/0.6593, allocations: 153.8 kB / 0.5561 GB, free: 7.906 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.345e-05/0.6594, allocations: 42.41 kB / 0.5562 GB, free: 7.871 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/0.6594, allocations: 0 / 0.5562 GB, free: 7.871 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.181e-05/0.6595, allocations: 318 kB / 0.5565 GB, free: 7.555 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.647e-05/0.6596, allocations: 27.36 kB / 0.5565 GB, free: 7.531 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.148e-05/0.6596, allocations: 31.3 kB / 0.5565 GB, free: 7.504 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.569e-05/0.6597, allocations: 80.88 kB / 0.5566 GB, free: 7.426 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.6597, allocations: 0 / 0.5566 GB, free: 7.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002117/0.66, allocations: 150.1 kB / 0.5567 GB, free: 7.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.624e-05/0.66, allocations: 45.67 kB / 0.5568 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.6601, allocations: 0 / 0.5568 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.6601, allocations: 4 kB / 0.5568 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.6601, allocations: 4.062 kB / 0.5568 GB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.6601, allocations: 0 / 0.5568 GB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.681e-05/0.6602, allocations: 3.938 kB / 0.5568 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.6602, allocations: 4 kB / 0.5568 GB, free: 7.211 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.0001277/0.6603, allocations: 167.3 kB / 0.557 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.6604, allocations: 15.89 kB / 0.557 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.228e-05/0.6604, allocations: 7.75 kB / 0.557 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.6604, allocations: 0 / 0.557 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.6604, allocations: 0 / 0.557 GB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.6604, allocations: 8 kB / 0.557 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.6606, allocations: 171.9 kB / 0.5572 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.6606, allocations: 3.953 kB / 0.5572 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.6606, allocations: 4 kB / 0.5572 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.6606, allocations: 0 / 0.5572 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.6606, allocations: 0.8125 kB / 0.5572 GB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.6606, allocations: 4 kB / 0.5572 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6606, allocations: 0 / 0.5572 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004036/0.6611, allocations: 282 kB / 0.5574 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.6611, allocations: 92.91 kB / 0.5575 GB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.6611, allocations: 2.625 kB / 0.5575 GB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.578e-05/0.6612, allocations: 4.875 kB / 0.5575 GB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.304e-05/0.6612, allocations: 0 / 0.5575 GB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.6613, allocations: 7.984 kB / 0.5575 GB, free: 6.395 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.047e-05/0.6613, allocations: 103.1 kB / 0.5576 GB, free: 6.301 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6613, allocations: 0 / 0.5576 GB, free: 6.301 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003048/0.6616, allocations: 32 kB / 0.5577 GB, free: 6.27 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.0006827/0.6623, allocations: 0.82 MB / 0.5585 GB, free: 5.449 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004037/0.6628, allocations: 291.3 kB / 0.5588 GB, free: 5.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6628, allocations: 0 / 0.5588 GB, free: 5.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.663, allocations: 222.3 kB / 0.559 GB, free: 5.055 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.6633, allocations: 12.14 kB / 0.559 GB, free: 5.043 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.6647, allocations: 0.8254 MB / 0.5598 GB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.6649, allocations: 0.7082 MB / 0.5605 GB, free: 3.516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.6649, allocations: 22.86 kB / 0.5605 GB, free: 3.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6649, allocations: 0 / 0.5605 GB, free: 3.5 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_matrixEqCirc1CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1Functions.cpp:37:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp8; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1FMU.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_matrixEqCirc1CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.o] Error 1