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.002188/0.002187, allocations: 180.7 kB / 8.011 MB, free: 1.062 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.176/2.176, allocations: 205.3 MB / 213.7 MB, free: 1.723 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.001094/0.001094, allocations: 86.23 kB / 261.8 MB, free: 1.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2502/0.2502, allocations: 38 MB / 347.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.601e-05/2.604e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.452/0.5541, allocations: 86.33 MB / 0.5396 GB, free: 11.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.5544, allocations: 77.97 kB / 0.5397 GB, free: 11.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006192/0.5606, allocations: 1.546 MB / 0.5412 GB, free: 10.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5607, allocations: 0 / 0.5412 GB, free: 10.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.5607, allocations: 0 / 0.5412 GB, free: 10.72 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.0002702/0.561, allocations: 385.3 kB / 0.5416 GB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.561, allocations: 13.72 kB / 0.5416 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.402e-05/0.5611, allocations: 3.906 kB / 0.5416 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.5612, allocations: 183.5 kB / 0.5418 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.5613, allocations: 3.875 kB / 0.5418 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.5613, allocations: 3.984 kB / 0.5418 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.482e-05/0.5614, allocations: 31.25 kB / 0.5418 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.5615, allocations: 65.06 kB / 0.5419 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.5616, allocations: 0 / 0.5419 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.5616, allocations: 3.844 kB / 0.5419 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5616, allocations: 0 / 0.5419 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001134/0.5617, allocations: 142.1 kB / 0.542 GB, free: 9.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.373e-05/0.5618, allocations: 53.92 kB / 0.5421 GB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.099e-05/0.5619, allocations: 40.77 kB / 0.5421 GB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.5619, allocations: 4 kB / 0.5421 GB, free: 9.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.5619, allocations: 40.08 kB / 0.5422 GB, free: 9.836 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.5619, allocations: 0 / 0.5422 GB, free: 9.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002798/0.5622, allocations: 108.6 kB / 0.5423 GB, free: 9.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.5623, allocations: 87.12 kB / 0.5423 GB, free: 9.703 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.476e-05/0.5624, allocations: 114.3 kB / 0.5424 GB, free: 9.605 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.5624, allocations: 25.7 kB / 0.5425 GB, free: 9.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.131e-05/0.5624, allocations: 157.8 kB / 0.5426 GB, free: 9.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.691e-05/0.5625, allocations: 44.44 kB / 0.5427 GB, free: 9.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.88e-06/0.5625, allocations: 0 / 0.5427 GB, free: 9.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.489e-05/0.5626, allocations: 314.7 kB / 0.543 GB, free: 9.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.85e-05/0.5626, allocations: 29.03 kB / 0.543 GB, free: 9.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.494e-05/0.5627, allocations: 26.16 kB / 0.543 GB, free: 9.086 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.5628, allocations: 46.95 kB / 0.5431 GB, free: 9.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5628, allocations: 0 / 0.5431 GB, free: 9.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000199/0.563, allocations: 109.5 kB / 0.5432 GB, free: 9.043 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.307e-05/0.5631, allocations: 51.34 kB / 0.5432 GB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.5631, allocations: 4.062 kB / 0.5432 GB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.5631, allocations: 3.938 kB / 0.5432 GB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.5631, allocations: 3.938 kB / 0.5432 GB, free: 9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.5631, allocations: 0 / 0.5432 GB, free: 9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.243e-05/0.5632, allocations: 8.531 kB / 0.5432 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.5632, allocations: 7.188 kB / 0.5432 GB, free: 8.996 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 9.218e-05/0.5633, allocations: 147.6 kB / 0.5434 GB, free: 8.859 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003209/0.5637, allocations: 182.2 kB / 0.5436 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.02e-05/0.5637, allocations: 11.56 kB / 0.5436 GB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.896e-05/0.5637, allocations: 11.91 kB / 0.5436 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.5637, allocations: 3.703 kB / 0.5436 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5638, allocations: 0 / 0.5436 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.5638, allocations: 3.812 kB / 0.5436 GB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.89e-05/0.5639, allocations: 147.8 kB / 0.5437 GB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5639, allocations: 3.953 kB / 0.5437 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-06/0.5639, allocations: 0 / 0.5437 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.5639, allocations: 0 / 0.5437 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.5639, allocations: 7.406 kB / 0.5437 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5639, allocations: 0 / 0.5437 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.5639, allocations: 0.9375 kB / 0.5437 GB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.5643, allocations: 215.2 kB / 0.5439 GB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.97e-05/0.5643, allocations: 91.67 kB / 0.544 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.5644, allocations: 3.906 kB / 0.544 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.116e-05/0.5644, allocations: 0 / 0.544 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.003e-05/0.5645, allocations: 3.844 kB / 0.544 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.5645, allocations: 7.344 kB / 0.544 GB, free: 8.465 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.236e-05/0.5645, allocations: 90.27 kB / 0.5441 GB, free: 8.391 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5645, allocations: 4.031 kB / 0.5441 GB, free: 8.387 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003093/0.5649, allocations: 35.12 kB / 0.5442 GB, free: 8.379 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.0005884/0.5655, allocations: 0.7598 MB / 0.5449 GB, free: 7.773 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.5658, allocations: 287.6 kB / 0.5452 GB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5659, allocations: 0 / 0.5452 GB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.5661, allocations: 219.1 kB / 0.5454 GB, free: 7.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.5663, allocations: 14.95 kB / 0.5454 GB, free: 7.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005704/0.5669, allocations: 267.7 kB / 0.5457 GB, free: 7.484 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.567, allocations: 0.7045 MB / 0.5464 GB, free: 6.785 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.5671, allocations: 18.62 kB / 0.5464 GB, free: 6.777 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5671, allocations: 0 / 0.5464 GB, free: 6.777 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_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/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_matrixEqCirc1CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.o] Error 1