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.002925/0.002925, allocations: 185 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.939/1.939, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.001046/0.001046, allocations: 97.06 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2646/0.2646, allocations: 37.96 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.595e-05/3.601e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 56.32 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4846/0.5883, allocations: 86.96 MB / 0.547 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.5887, allocations: 75.95 kB / 0.5471 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007611/0.5963, allocations: 1.669 MB / 0.5487 GB, free: 15 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5963, allocations: 0 / 0.5487 GB, free: 15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.5964, allocations: 0 / 0.5487 GB, free: 15 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004261/0.5968, allocations: 428.9 kB / 0.5492 GB, free: 14.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.5969, allocations: 12.03 kB / 0.5492 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.765e-05/0.5969, allocations: 39.66 kB / 0.5492 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.597, allocations: 7.906 kB / 0.5492 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.5972, allocations: 190.7 kB / 0.5494 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.5972, allocations: 4 kB / 0.5494 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.5973, allocations: 0 / 0.5494 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.5975, allocations: 89.66 kB / 0.5495 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.5975, allocations: 3.938 kB / 0.5495 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.5975, allocations: 0 / 0.5495 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.5975, allocations: 8 kB / 0.5495 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.5976, allocations: 59.91 kB / 0.5496 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.5979, allocations: 186.3 kB / 0.5497 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.598, allocations: 102.5 kB / 0.5498 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.5982, allocations: 81.69 kB / 0.5499 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.5982, allocations: 4 kB / 0.5499 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.5983, allocations: 34.55 kB / 0.5499 GB, free: 13.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.5983, allocations: 4 kB / 0.5499 GB, free: 13.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004261/0.5987, allocations: 227.2 kB / 0.5502 GB, free: 13.37 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.5988, allocations: 97.11 kB / 0.5503 GB, free: 13.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.5989, allocations: 121.2 kB / 0.5504 GB, free: 13.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.599, allocations: 25.7 kB / 0.5504 GB, free: 13.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.495e-05/0.5991, allocations: 159 kB / 0.5505 GB, free: 12.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.962e-05/0.5992, allocations: 74.81 kB / 0.5506 GB, free: 12.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-06/0.5992, allocations: 4 kB / 0.5506 GB, free: 12.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5993, allocations: 326.8 kB / 0.5509 GB, free: 12.53 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.5994, allocations: 55.97 kB / 0.551 GB, free: 12.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.5996, allocations: 59.97 kB / 0.551 GB, free: 12.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.5998, allocations: 113.7 kB / 0.5512 GB, free: 12.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5998, allocations: 0 / 0.5512 GB, free: 12.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003769/0.6002, allocations: 227 kB / 0.5514 GB, free: 12.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.42e-05/0.6003, allocations: 65.66 kB / 0.5514 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.6003, allocations: 0 / 0.5514 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.6003, allocations: 0 / 0.5514 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-06/0.6004, allocations: 0 / 0.5514 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.6004, allocations: 4.062 kB / 0.5514 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.809e-05/0.6004, allocations: 11.94 kB / 0.5514 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.6005, allocations: 11.98 kB / 0.5515 GB, free: 11.97 MB / 394.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 () * 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.0001728/0.6007, allocations: 166.6 kB / 0.5516 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.756e-05/0.6007, allocations: 19.8 kB / 0.5516 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.6008, allocations: 12.75 kB / 0.5516 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.6008, allocations: 0 / 0.5516 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6008, allocations: 0 / 0.5516 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.6008, allocations: 0 / 0.5516 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.601, allocations: 209.3 kB / 0.5518 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.601, allocations: 0 / 0.5518 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.601, allocations: 0 / 0.5518 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.601, allocations: 0 / 0.5518 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.6011, allocations: 4 kB / 0.5519 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.6011, allocations: 4 kB / 0.5519 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6011, allocations: 0 / 0.5519 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000875/0.602, allocations: 0.51 MB / 0.5524 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.6021, allocations: 92.91 kB / 0.5524 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.775e-05/0.6021, allocations: 12.03 kB / 0.5525 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.86e-05/0.6022, allocations: 4 kB / 0.5525 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.6022, allocations: 7.938 kB / 0.5525 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/0.6022, allocations: 4 kB / 0.5525 GB, free: 10.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.42e-05/0.6023, allocations: 103.9 kB / 0.5526 GB, free: 10.72 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6024, allocations: 0 / 0.5526 GB, free: 10.72 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003266/0.6027, allocations: 40 kB / 0.5526 GB, free: 10.68 MB / 394.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 () * 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.001259/0.604, allocations: 1.055 MB / 0.5536 GB, free: 9.594 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.605, allocations: 0.7021 MB / 0.5543 GB, free: 8.879 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.6051, allocations: 0 / 0.5543 GB, free: 8.879 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000724/0.6058, allocations: 0.5657 MB / 0.5549 GB, free: 8.301 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.6061, allocations: 12.45 kB / 0.5549 GB, free: 8.289 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009676/0.607, allocations: 429.3 kB / 0.5553 GB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.6074, allocations: 0.7241 MB / 0.556 GB, free: 7.078 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.226e-05/0.6075, allocations: 31.38 kB / 0.556 GB, free: 7.047 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6075, allocations: 0 / 0.556 GB, free: 7.047 MB / 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/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