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.001996/0.002002, allocations: 181.2 kB / 8.009 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 90.36 kB / 261.8 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.26/0.26, allocations: 38 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.888e-05, allocations: 4 kB / 409.9 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.474/0.585, allocations: 86.29 MB / 0.5396 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.5854, allocations: 82.53 kB / 0.5397 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007065/0.5924, allocations: 1.789 MB / 0.5414 GB, free: 11.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5925, allocations: 0 / 0.5414 GB, free: 11.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.5925, allocations: 8.828 kB / 0.5414 GB, free: 11.06 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.000346/0.5929, allocations: 455.2 kB / 0.5419 GB, free: 10.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.5929, allocations: 10.06 kB / 0.5419 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.623e-05/0.593, allocations: 18.88 kB / 0.5419 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.5932, allocations: 205.4 kB / 0.5421 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.5932, allocations: 4 kB / 0.5421 GB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/0.5933, allocations: 3.844 kB / 0.5421 GB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001522/0.5934, allocations: 93.02 kB / 0.5422 GB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.5936, allocations: 129.5 kB / 0.5423 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.5936, allocations: 0 / 0.5423 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.5936, allocations: 0.75 kB / 0.5423 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.5936, allocations: 0 / 0.5423 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001342/0.5938, allocations: 168.4 kB / 0.5425 GB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.594, allocations: 155.3 kB / 0.5426 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.5941, allocations: 138.1 kB / 0.5428 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.849e-06/0.5941, allocations: 3.844 kB / 0.5428 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.5942, allocations: 32.86 kB / 0.5428 GB, free: 10.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.735e-06/0.5942, allocations: 0 / 0.5428 GB, free: 10.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0005047/0.5947, allocations: 273.4 kB / 0.5431 GB, free: 10.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.5948, allocations: 106.2 kB / 0.5432 GB, free: 9.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.5949, allocations: 127.7 kB / 0.5433 GB, free: 9.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.5949, allocations: 33.52 kB / 0.5433 GB, free: 9.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.19e-05/0.595, allocations: 157.5 kB / 0.5435 GB, free: 9.688 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.5951, allocations: 130.7 kB / 0.5436 GB, free: 9.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-06/0.5951, allocations: 0 / 0.5436 GB, free: 9.602 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.896e-05/0.5952, allocations: 327.3 kB / 0.5439 GB, free: 9.289 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.5953, allocations: 90.08 kB / 0.544 GB, free: 9.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.5954, allocations: 93.92 kB / 0.5441 GB, free: 9.285 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.5956, allocations: 129.3 kB / 0.5442 GB, free: 9.281 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5957, allocations: 32 / 0.5442 GB, free: 9.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003984/0.5961, allocations: 273.2 kB / 0.5445 GB, free: 9.227 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.5962, allocations: 87.45 kB / 0.5445 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.5962, allocations: 0.875 kB / 0.5445 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.5962, allocations: 0 / 0.5445 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.5962, allocations: 0 / 0.5445 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.5963, allocations: 0 / 0.5445 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.463e-05/0.5963, allocations: 33.69 kB / 0.5446 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.38e-05/0.5964, allocations: 7.812 kB / 0.5446 GB, free: 9.176 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 () * 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.0001647/0.5966, allocations: 190.3 kB / 0.5448 GB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008147/0.5974, allocations: 0.5082 MB / 0.5453 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.933e-05/0.5975, allocations: 23.38 kB / 0.5453 GB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/0.5975, allocations: 16.3 kB / 0.5453 GB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.5975, allocations: 0 / 0.5453 GB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5975, allocations: 0 / 0.5453 GB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.5975, allocations: 0 / 0.5453 GB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.5977, allocations: 185 kB / 0.5455 GB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5977, allocations: 7.094 kB / 0.5455 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.332e-06/0.5977, allocations: 0 / 0.5455 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.5977, allocations: 0 / 0.5455 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.5978, allocations: 7.688 kB / 0.5455 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.5978, allocations: 4.031 kB / 0.5455 GB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.5978, allocations: 3.938 kB / 0.5455 GB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008731/0.5987, allocations: 0.5405 MB / 0.546 GB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.5987, allocations: 104.5 kB / 0.5461 GB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.5988, allocations: 3.906 kB / 0.5461 GB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.692e-05/0.5989, allocations: 10.64 kB / 0.5461 GB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.5989, allocations: 2.75 kB / 0.5461 GB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.599, allocations: 15.72 kB / 0.5462 GB, free: 8.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.042e-05/0.599, allocations: 104.1 kB / 0.5463 GB, free: 8.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.5991, allocations: 0 / 0.5463 GB, free: 8.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003536/0.5994, allocations: 61.78 kB / 0.5463 GB, free: 8.516 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 () * 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.001142/0.6006, allocations: 1.095 MB / 0.5474 GB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.6021, allocations: 1.564 MB / 0.5489 GB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6022, allocations: 0 / 0.5489 GB, free: 7.828 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.6034, allocations: 1.359 MB / 0.5502 GB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.6037, allocations: 19.14 kB / 0.5503 GB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.6049, allocations: 0.6103 MB / 0.5508 GB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.6051, allocations: 0.756 MB / 0.5516 GB, free: 6.891 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.6052, allocations: 38.16 kB / 0.5516 GB, free: 6.883 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6052, allocations: 4 kB / 0.5516 GB, free: 6.879 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/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/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