Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.002241/0.002241, allocations: 184.1 kB / 13.2 MB, free: 2.117 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.092/2.092, allocations: 205.2 MB / 218.9 MB, free: 9.129 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.001102/0.001102, allocations: 95.75 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2703/0.2703, allocations: 37.97 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.396e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1285, allocations: 56.32 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.451/0.5796, allocations: 86.96 MB / 0.547 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.5799, allocations: 75.95 kB / 0.5471 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0086/0.5885, allocations: 1.805 MB / 0.5489 GB, free: 14.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5886, allocations: 0 / 0.5489 GB, free: 14.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.5886, allocations: 5.094 kB / 0.5489 GB, free: 14.85 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005565/0.5892, allocations: 460.8 kB / 0.5493 GB, free: 14.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.5893, allocations: 8.031 kB / 0.5493 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.548e-05/0.5894, allocations: 50.55 kB / 0.5494 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.843e-05/0.5894, allocations: 15.81 kB / 0.5494 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.5897, allocations: 211.2 kB / 0.5496 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.575e-06/0.5897, allocations: 0 / 0.5496 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.5898, allocations: 0 / 0.5496 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.59, allocations: 130.6 kB / 0.5497 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.5901, allocations: 0 / 0.5497 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.5901, allocations: 0 / 0.5497 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.5901, allocations: 4 kB / 0.5497 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.5903, allocations: 96.22 kB / 0.5498 GB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000238/0.5905, allocations: 209.9 kB / 0.55 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.5908, allocations: 150.9 kB / 0.5502 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.591, allocations: 141.2 kB / 0.5503 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-06/0.591, allocations: 0 / 0.5503 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.5911, allocations: 30.56 kB / 0.5503 GB, free: 13.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 1.784e-06/0.5911, allocations: 0 / 0.5503 GB, free: 13.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.0006392/0.5917, allocations: 336.9 kB / 0.5506 GB, free: 12.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.468e-05/0.5918, allocations: 105.1 kB / 0.5507 GB, free: 12.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.592, allocations: 130.2 kB / 0.5509 GB, free: 12.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.5921, allocations: 29.64 kB / 0.5509 GB, free: 12.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.5922, allocations: 159.3 kB / 0.5511 GB, free: 12.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.5923, allocations: 134 kB / 0.5512 GB, free: 12.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.837e-06/0.5923, allocations: 4 kB / 0.5512 GB, free: 12.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5925, allocations: 330.8 kB / 0.5515 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.5927, allocations: 88 kB / 0.5516 GB, free: 11.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.5929, allocations: 95.95 kB / 0.5517 GB, free: 11.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.5932, allocations: 189.8 kB / 0.5519 GB, free: 11.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5932, allocations: 0 / 0.5519 GB, free: 11.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005701/0.5938, allocations: 319.1 kB / 0.5522 GB, free: 11.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001323/0.5939, allocations: 85.55 kB / 0.5522 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.5939, allocations: 3.984 kB / 0.5522 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.594, allocations: 4 kB / 0.5522 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.594, allocations: 0 / 0.5522 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.594, allocations: 0 / 0.5522 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.5941, allocations: 31.69 kB / 0.5523 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-05/0.5942, allocations: 8 kB / 0.5523 GB, free: 11.1 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.0002284/0.5944, allocations: 198.6 kB / 0.5525 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.851e-05/0.5945, allocations: 19.81 kB / 0.5525 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.5945, allocations: 9.875 kB / 0.5525 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.5945, allocations: 0 / 0.5525 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5946, allocations: 0 / 0.5525 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.5946, allocations: 0 / 0.5525 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002563/0.5948, allocations: 237.3 kB / 0.5527 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.5948, allocations: 3.984 kB / 0.5527 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.5949, allocations: 4 kB / 0.5527 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.5949, allocations: 0 / 0.5527 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.5949, allocations: 8 kB / 0.5527 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5949, allocations: 0 / 0.5527 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5949, allocations: 0 / 0.5527 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.5965, allocations: 0.8925 MB / 0.5536 GB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.817e-05/0.5966, allocations: 104.7 kB / 0.5537 GB, free: 9.527 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.5966, allocations: 8 kB / 0.5537 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.244e-05/0.5967, allocations: 8.031 kB / 0.5537 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.5968, allocations: 12 kB / 0.5537 GB, free: 9.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-05/0.5968, allocations: 15.97 kB / 0.5538 GB, free: 9.484 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001195/0.5969, allocations: 112.5 kB / 0.5539 GB, free: 9.375 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.597, allocations: 4 kB / 0.5539 GB, free: 9.371 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003777/0.5973, allocations: 56 kB / 0.5539 GB, free: 9.316 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.002022/0.5994, allocations: 1.442 MB / 0.5553 GB, free: 7.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.6017, allocations: 1.589 MB / 0.5569 GB, free: 6.238 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.6017, allocations: 0 / 0.5569 GB, free: 6.238 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001751/0.6035, allocations: 1.366 MB / 0.5582 GB, free: 4.859 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.6039, allocations: 19.98 kB / 0.5582 GB, free: 4.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.6053, allocations: 0.6187 MB / 0.5588 GB, free: 4.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.6058, allocations: 0.752 MB / 0.5596 GB, free: 3.402 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.236e-05/0.6059, allocations: 43.42 kB / 0.5596 GB, free: 3.359 MB / 394.7 MB Notification: Performance of SimCode: time 1.693e-06/0.6059, allocations: 0 / 0.5596 GB, free: 3.359 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_matrixEqCirc3CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3Functions.cpp:37:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp7; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3FMU.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_matrixEqCirc3CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.o] Error 1