Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.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_matrixTrDat1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1",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.002231/0.00223, allocations: 189 kB / 8.013 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.066/2.066, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001119/0.001119, allocations: 94.64 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.2529/0.2529, allocations: 38 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.697e-05/2.707e-05, allocations: 3.984 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4853/0.6014, allocations: 91.77 MB / 0.545 GB, free: 11.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.6017, allocations: 76.67 kB / 0.545 GB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06306/0.6648, allocations: 11.9 MB / 0.5566 GB, free: 6.117 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6649, allocations: 0 / 0.5566 GB, free: 6.117 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.6649, allocations: 0 / 0.5566 GB, free: 6.117 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.0009363/0.6658, allocations: 0.5465 MB / 0.5572 GB, free: 5.598 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.6659, allocations: 7.688 kB / 0.5572 GB, free: 5.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.661e-05/0.6659, allocations: 7.781 kB / 0.5572 GB, free: 5.594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.6661, allocations: 191.6 kB / 0.5574 GB, free: 5.383 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.6662, allocations: 0 / 0.5574 GB, free: 5.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.6662, allocations: 0 / 0.5574 GB, free: 5.383 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.518e-05/0.6663, allocations: 34.58 kB / 0.5574 GB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.6664, allocations: 60.55 kB / 0.5575 GB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.6664, allocations: 0 / 0.5575 GB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.6665, allocations: 3.984 kB / 0.5575 GB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.6665, allocations: 11.84 kB / 0.5575 GB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.6666, allocations: 145.1 kB / 0.5576 GB, free: 5.156 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.919e-05/0.6667, allocations: 56.84 kB / 0.5577 GB, free: 5.129 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.432e-05/0.6668, allocations: 42.81 kB / 0.5577 GB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.6668, allocations: 0.75 kB / 0.5577 GB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.6668, allocations: 30.56 kB / 0.5577 GB, free: 5.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.385e-06/0.6668, allocations: 0 / 0.5577 GB, free: 5.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.000345/0.6672, allocations: 125.5 kB / 0.5579 GB, free: 5.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.6672, allocations: 84.52 kB / 0.5579 GB, free: 4.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.348e-05/0.6674, allocations: 119.6 kB / 0.5581 GB, free: 4.824 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.6674, allocations: 25.7 kB / 0.5581 GB, free: 4.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.6674, allocations: 157.7 kB / 0.5582 GB, free: 4.645 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.847e-05/0.6675, allocations: 46.61 kB / 0.5583 GB, free: 4.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-06/0.6675, allocations: 0 / 0.5583 GB, free: 4.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.954e-05/0.6676, allocations: 310.8 kB / 0.5586 GB, free: 4.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.683e-05/0.6676, allocations: 38.48 kB / 0.5586 GB, free: 4.289 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.298e-05/0.6677, allocations: 26.77 kB / 0.5586 GB, free: 4.285 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.6679, allocations: 41.97 kB / 0.5587 GB, free: 4.277 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.6679, allocations: 3.953 kB / 0.5587 GB, free: 4.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002552/0.6681, allocations: 111.5 kB / 0.5588 GB, free: 4.223 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.6682, allocations: 50.47 kB / 0.5588 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.6682, allocations: 0 / 0.5588 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.6682, allocations: 0 / 0.5588 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-06/0.6683, allocations: 0 / 0.5588 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.6683, allocations: 0 / 0.5588 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.771e-05/0.6683, allocations: 15.75 kB / 0.5589 GB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.6684, allocations: 7.797 kB / 0.5589 GB, free: 4.172 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.87e-05/0.6685, allocations: 148.9 kB / 0.559 GB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003693/0.6689, allocations: 186 kB / 0.5592 GB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.6689, allocations: 7.688 kB / 0.5592 GB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.178e-05/0.6689, allocations: 11.69 kB / 0.5592 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.6689, allocations: 0 / 0.5592 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.6689, allocations: 0 / 0.5592 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.669, allocations: 0 / 0.5592 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.6691, allocations: 164.5 kB / 0.5594 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6691, allocations: 4 kB / 0.5594 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.6691, allocations: 0 / 0.5594 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.6691, allocations: 0 / 0.5594 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.6691, allocations: 7.859 kB / 0.5594 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.6691, allocations: 0 / 0.5594 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.6691, allocations: 3.938 kB / 0.5594 GB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003933/0.6695, allocations: 209.8 kB / 0.5596 GB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.6696, allocations: 92.75 kB / 0.5597 GB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.6696, allocations: 7.875 kB / 0.5597 GB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.59e-05/0.6697, allocations: 0 / 0.5597 GB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.559e-05/0.6697, allocations: 7.828 kB / 0.5597 GB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.6698, allocations: 3.844 kB / 0.5597 GB, free: 3.566 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.551e-05/0.6698, allocations: 97.61 kB / 0.5598 GB, free: 3.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6698, allocations: 0 / 0.5598 GB, free: 3.488 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001277/0.6711, allocations: 352.3 kB / 0.5601 GB, free: 3.359 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.00197/0.6731, allocations: 1.077 MB / 0.5612 GB, free: 2.309 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.6735, allocations: 282.2 kB / 0.5614 GB, free: 2.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6736, allocations: 0 / 0.5614 GB, free: 2.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.6738, allocations: 223.7 kB / 0.5616 GB, free: 1.922 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.674, allocations: 8.938 kB / 0.5617 GB, free: 1.914 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009724/0.675, allocations: 406.6 kB / 0.562 GB, free: 1.492 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.6752, allocations: 0.7119 MB / 0.5627 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.639e-05/0.6752, allocations: 19.19 kB / 0.5628 GB, free: 0.75 MB / 362.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6752, allocations: 0 / 0.5628 GB, free: 0.75 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_matrixTrDat1CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.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_matrixTrDat1Functions.cpp:497:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp63; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:820:22: error: expected '(' for function-style cast or type construction DynArrayDim4 tmp113; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:820:3: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:820:24: error: use of undeclared identifier 'tmp113' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1034:28: error: expected '(' for function-style cast or type construction DynArrayDim4 $tmpVar25_; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1034:9: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1034:30: error: use of undeclared identifier '$tmpVar25_' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1065:9: error: use of undeclared identifier '$tmpVar25_'; did you mean '$tmpVar24_'? $tmpVar25_.setDims(tmp131); ^~~~~~~~~~ $tmpVar24_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.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_matrixTrDat1CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.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_matrixTrDat1CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.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_matrixTrDat1Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1128:9: error: use of undeclared identifier 'tmp113'; did you mean 'tmp103'? tmp113 = $tmpVar25_; ^~~~~~ tmp103 ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:1128:18: error: use of undeclared identifier '$tmpVar25_' tmp113 = $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.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_matrixTrDat1Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:2540:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp360; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Initialize.cpp:231:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_z__matrix(1, /*t4*/tmp379, tmp382, _x_d_, _xsig_s_, _r_s_, _if0_, (3.141592653589793 + _alpha_if0_), 0.0, true, tmp383); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_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__matrixTrDat1_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Initialize.cpp:244:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_z__matrix(1, /*t4*/tmp384, tmp387, _x_q_, _xsig_s_, _r_s_, 0.0, 0.0, 0.0, false, tmp388); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_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__matrixTrDat1_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1CalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1.cpp:232:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_z__matrix(1, /*t4*/tmp0, tmp3, _x_d_, _xsig_s_, _r_s_, _if0_, (3.141592653589793 + _alpha_if0_), 0.0, true, tmp4); ^~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat1_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__matrixTrDat1_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_matrixTrDat1CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat1CalcHelperMain.o] Error 1