Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001484/0.00149, allocations: 181.8 kB / 8.008 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.061/2.061, 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.001124/0.001124, allocations: 94.64 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2518/0.2518, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.943e-05/1.94e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4901/0.5966, allocations: 91.76 MB / 0.545 GB, free: 11.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.597, allocations: 79.11 kB / 0.545 GB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07109/0.6681, allocations: 12.23 MB / 0.557 GB, free: 6.125 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6682, allocations: 3.844 kB / 0.557 GB, free: 6.125 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.6682, allocations: 3.938 kB / 0.557 GB, free: 6.121 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.0009989/0.6692, allocations: 0.6121 MB / 0.5576 GB, free: 5.574 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.6693, allocations: 7.656 kB / 0.5576 GB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.6693, allocations: 19.34 kB / 0.5576 GB, free: 5.562 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.6695, allocations: 204.3 kB / 0.5578 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.6696, allocations: 0 / 0.5578 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.6696, allocations: 4 kB / 0.5578 GB, free: 5.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001686/0.6698, allocations: 95.47 kB / 0.5579 GB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.67, allocations: 134.3 kB / 0.558 GB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.67, allocations: 0 / 0.558 GB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.67, allocations: 0 / 0.558 GB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.67, allocations: 0.75 kB / 0.558 GB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000141/0.6702, allocations: 179.7 kB / 0.5582 GB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.6704, allocations: 153.5 kB / 0.5583 GB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.6705, allocations: 138.1 kB / 0.5585 GB, free: 5.031 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.6705, allocations: 6.844 kB / 0.5585 GB, free: 5.031 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.6706, allocations: 30.56 kB / 0.5585 GB, free: 4.992 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.6706, allocations: 0 / 0.5585 GB, free: 4.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0005483/0.6711, allocations: 274.1 kB / 0.5588 GB, free: 4.914 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.6712, allocations: 115.2 kB / 0.5589 GB, free: 4.809 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.6713, allocations: 143 kB / 0.559 GB, free: 4.707 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.6714, allocations: 25.7 kB / 0.559 GB, free: 4.676 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.901e-05/0.6714, allocations: 172.9 kB / 0.5592 GB, free: 4.523 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.964e-05/0.6715, allocations: 122.9 kB / 0.5593 GB, free: 4.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-06/0.6716, allocations: 0 / 0.5593 GB, free: 4.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.933e-05/0.6716, allocations: 329.3 kB / 0.5596 GB, free: 4.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.6718, allocations: 89.23 kB / 0.5597 GB, free: 4.102 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.6719, allocations: 96.31 kB / 0.5598 GB, free: 4.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.6722, allocations: 127 kB / 0.5599 GB, free: 4.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.6722, allocations: 3.953 kB / 0.5599 GB, free: 4.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004534/0.6727, allocations: 264.4 kB / 0.5602 GB, free: 3.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.489e-05/0.6728, allocations: 92.62 kB / 0.5603 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.6728, allocations: 0 / 0.5603 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.6728, allocations: 0 / 0.5603 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.373e-06/0.6728, allocations: 0 / 0.5603 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6728, allocations: 0 / 0.5603 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.673, allocations: 19.78 kB / 0.5603 GB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.673, allocations: 15.94 kB / 0.5603 GB, free: 3.684 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.0001652/0.6732, allocations: 193.3 kB / 0.5605 GB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008716/0.6741, allocations: 0.5005 MB / 0.561 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.6741, allocations: 27.75 kB / 0.561 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.6742, allocations: 23.2 kB / 0.561 GB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.6742, allocations: 0 / 0.561 GB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.6742, allocations: 0 / 0.561 GB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.6742, allocations: 0 / 0.561 GB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.6743, allocations: 203.8 kB / 0.5612 GB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6744, allocations: 4 kB / 0.5612 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-06/0.6744, allocations: 0 / 0.5612 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.6744, allocations: 0 / 0.5612 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.6744, allocations: 8 kB / 0.5612 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.6744, allocations: 0 / 0.5612 GB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.6744, allocations: 4.938 kB / 0.5612 GB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009024/0.6754, allocations: 0.5395 MB / 0.5618 GB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.108e-05/0.6754, allocations: 100.7 kB / 0.5619 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.732e-05/0.6755, allocations: 8 kB / 0.5619 GB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-05/0.6756, allocations: 7.938 kB / 0.5619 GB, free: 2.191 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.6756, allocations: 7.5 kB / 0.5619 GB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/0.6757, allocations: 12 kB / 0.5619 GB, free: 2.176 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.499e-05/0.6758, allocations: 128.3 kB / 0.562 GB, free: 2.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6758, allocations: 0 / 0.562 GB, free: 2.062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001296/0.6771, allocations: 386.8 kB / 0.5624 GB, free: 1.691 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.002416/0.6795, allocations: 1.403 MB / 0.5638 GB, free: 392 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.6813, allocations: 1.564 MB / 0.5653 GB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.6813, allocations: 0 / 0.5653 GB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.6827, allocations: 1.356 MB / 0.5666 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.683, allocations: 11 kB / 0.5666 GB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.6851, allocations: 0.7581 MB / 0.5674 GB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.6855, allocations: 0.7635 MB / 0.5681 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.76e-05/0.6856, allocations: 55.66 kB / 0.5682 GB, free: 13.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6856, allocations: 0 / 0.5682 GB, free: 13.36 MB / 378.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_matrixTrDat3CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:405:17: error: use of undeclared identifier 'daeExpBinary' y_.assign(daeExpBinary:ERR DIV_SCALAR_ARR not supported); ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:497:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp63; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:820:22: error: expected '(' for function-style cast or type construction DynArrayDim4 tmp113; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:820:3: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:820:24: error: use of undeclared identifier 'tmp113' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1034:28: error: expected '(' for function-style cast or type construction DynArrayDim4 $tmpVar25_; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1034:9: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1034:30: error: use of undeclared identifier '$tmpVar25_' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1065:9: error: use of undeclared identifier '$tmpVar25_'; did you mean '$tmpVar24_'? $tmpVar25_.setDims(tmp131); ^~~~~~~~~~ $tmpVar24_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1091:26: error: no matching member function for call to 'setDims' $tmpVar23_.setDims(tmp118); ~~~~~~~~~~~^~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1713:16: note: candidate function not viable: no known conversion from 'int' to 'const std::vector' (aka 'const vector') for 1st argument virtual void setDims(const std::vector& dims) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1706:8: note: candidate function not viable: requires 2 arguments, but 1 was provided void setDims(size_t size1, size_t size2) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1104:19: error: no matching function for call to object of type 'DynArrayDim2' $tmpVar23_(tmp114++) = $tmpVar22_; ^~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1688:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1682:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1694:21: note: candidate function not viable: requires 2 arguments, but 1 was provided inline virtual T& operator()(size_t i, size_t j) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1700:27: note: candidate function not viable: requires 2 arguments, but 1 was provided inline virtual const T& operator()(size_t i, size_t j) const ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1121:71: error: use of undeclared identifier '$tmpVar25_'; did you mean '$tmpVar24_'? fill_array_from_shape(make_pair(tmp119,tmp120),$tmpVar24_,$tmpVar25_); ^~~~~~~~~~ $tmpVar24_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1128:9: error: use of undeclared identifier 'tmp113'; did you mean 'tmp103'? tmp113 = $tmpVar25_; ^~~~~~ tmp103 ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1128:18: error: use of undeclared identifier '$tmpVar25_' tmp113 = $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:1130:32: error: use of undeclared identifier 'tmp113'; did you mean 'tmp103'? tmp132 = min_max(tmp113).second; ^~~~~~ tmp103 ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:2540:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp360; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Initialize.cpp:399:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrix(3, /*t4*/tmp379, tmp382, _x_d_, _xsig_s_, _r_s_, _if0_, (3.141592653589793 + _alpha_if0_), _tol_, true, tmp383); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrix(int n_, double x_, double xsig_s_, double r_s_, double if0_, double alpha_if0_, double tol_, bool field_, BaseArray& Tc_, BaseArray& To_,PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Initialize.cpp:412:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrix(3, /*t4*/tmp384, tmp387, _x_q_, _xsig_s_, _r_s_, 0.0, 0.0, 0.0, false, tmp388); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrix(int n_, double x_, double xsig_s_, double r_s_, double if0_, double alpha_if0_, double tol_, bool field_, BaseArray& Tc_, BaseArray& To_,PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3.cpp:400:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrix(3, /*t4*/tmp0, tmp3, _x_d_, _xsig_s_, _r_s_, _if0_, (3.141592653589793 + _alpha_if0_), _tol_, true, tmp4); ^~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrix(int n_, double x_, double xsig_s_, double r_s_, double if0_, double alpha_if0_, double tol_, bool field_, BaseArray& Tc_, BaseArray& To_,PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat3_z__matrixRetType & output ) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3CalcHelperMain.o] Error 1