Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",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.001995/0.001995, allocations: 185.7 kB / 8.01 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.12/2.12, allocations: 205.3 MB / 213.7 MB, free: 1.734 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.001038/0.001038, allocations: 87.95 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.2621/0.2621, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.033e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 56.31 MB / 466.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4836/0.593, allocations: 91.87 MB / 0.545 GB, free: 11.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.5933, allocations: 79.11 kB / 0.5451 GB, free: 11.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06562/0.6589, allocations: 11.87 MB / 0.5567 GB, free: 6.246 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.659, allocations: 0 / 0.5567 GB, free: 6.246 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.659, allocations: 0 / 0.5567 GB, free: 6.246 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009555/0.66, allocations: 0.5215 MB / 0.5572 GB, free: 5.742 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.66, allocations: 15.62 kB / 0.5572 GB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.12e-05/0.6601, allocations: 7.75 kB / 0.5572 GB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.6603, allocations: 182.2 kB / 0.5574 GB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.6603, allocations: 0 / 0.5574 GB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.6603, allocations: 0 / 0.5574 GB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.358e-05/0.6604, allocations: 21.77 kB / 0.5574 GB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.861e-05/0.6605, allocations: 59.73 kB / 0.5575 GB, free: 5.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.6606, allocations: 4 kB / 0.5575 GB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.6606, allocations: 0 / 0.5575 GB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.6606, allocations: 0 / 0.5575 GB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.6607, allocations: 152.9 kB / 0.5576 GB, free: 5.301 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.573e-05/0.6608, allocations: 43.83 kB / 0.5577 GB, free: 5.277 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.349e-05/0.6609, allocations: 29.22 kB / 0.5577 GB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.206e-06/0.6609, allocations: 0 / 0.5577 GB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.6609, allocations: 33.81 kB / 0.5577 GB, free: 5.227 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.6609, allocations: 3.688 kB / 0.5578 GB, free: 5.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003187/0.6613, allocations: 89.28 kB / 0.5578 GB, free: 5.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.6613, allocations: 96.06 kB / 0.5579 GB, free: 5.078 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.6614, allocations: 106 kB / 0.558 GB, free: 4.984 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.6614, allocations: 29.55 kB / 0.5581 GB, free: 4.953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/0.6615, allocations: 154 kB / 0.5582 GB, free: 4.805 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.042e-05/0.6615, allocations: 26.59 kB / 0.5582 GB, free: 4.785 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-06/0.6615, allocations: 0 / 0.5582 GB, free: 4.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.6616, allocations: 314.8 kB / 0.5585 GB, free: 4.469 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.345e-05/0.6617, allocations: 22.38 kB / 0.5586 GB, free: 4.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.309e-05/0.6617, allocations: 28.08 kB / 0.5586 GB, free: 4.457 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.6618, allocations: 26.7 kB / 0.5586 GB, free: 4.453 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6619, allocations: 3.953 kB / 0.5586 GB, free: 4.449 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002559/0.6621, allocations: 86.19 kB / 0.5587 GB, free: 4.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.829e-05/0.6622, allocations: 44.03 kB / 0.5587 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.6622, allocations: 0 / 0.5587 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.6622, allocations: 0 / 0.5587 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.936e-06/0.6622, allocations: 0 / 0.5587 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.6622, allocations: 7.875 kB / 0.5587 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.394e-05/0.6623, allocations: 3.969 kB / 0.5587 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.6623, allocations: 0 / 0.5587 GB, free: 4.363 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 8.763e-05/0.6624, allocations: 149.5 kB / 0.5589 GB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003054/0.6628, allocations: 137.7 kB / 0.559 GB, free: 4.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.6628, allocations: 15.77 kB / 0.559 GB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.6628, allocations: 8.125 kB / 0.559 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.6628, allocations: 0 / 0.559 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.6628, allocations: 0 / 0.559 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.6629, allocations: 0 / 0.559 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.353e-05/0.663, allocations: 145.8 kB / 0.5592 GB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.663, allocations: 3.906 kB / 0.5592 GB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.663, allocations: 4.031 kB / 0.5592 GB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.663, allocations: 0 / 0.5592 GB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.663, allocations: 3.984 kB / 0.5592 GB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.663, allocations: 3.812 kB / 0.5592 GB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.663, allocations: 0 / 0.5592 GB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003247/0.6634, allocations: 165.3 kB / 0.5594 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.04e-05/0.6634, allocations: 88.84 kB / 0.5594 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.6635, allocations: 3.984 kB / 0.5594 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.442e-05/0.6635, allocations: 7.875 kB / 0.5594 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.6635, allocations: 0 / 0.5594 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.6636, allocations: 3.844 kB / 0.5594 GB, free: 3.777 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.128e-05/0.6636, allocations: 94.73 kB / 0.5595 GB, free: 3.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6636, allocations: 0 / 0.5595 GB, free: 3.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001251/0.6649, allocations: 357.4 kB / 0.5599 GB, free: 3.613 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.0021/0.667, allocations: 1.025 MB / 0.5609 GB, free: 2.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003294/0.6674, allocations: 185.4 kB / 0.5611 GB, free: 2.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6674, allocations: 0 / 0.5611 GB, free: 2.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.6676, allocations: 146.6 kB / 0.5612 GB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.6678, allocations: 7.812 kB / 0.5612 GB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.6689, allocations: 350 kB / 0.5615 GB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.6691, allocations: 0.7002 MB / 0.5622 GB, free: 1.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.6691, allocations: 21.36 kB / 0.5622 GB, free: 1.406 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6691, allocations: 0 / 0.5622 GB, free: 1.406 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_matrixTrDat0CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.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_matrixTrDat0Functions.cpp:497:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp63; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:820:22: error: expected '(' for function-style cast or type construction DynArrayDim4 tmp113; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:820:3: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:820:24: error: use of undeclared identifier 'tmp113' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1034:28: error: expected '(' for function-style cast or type construction DynArrayDim4 $tmpVar25_; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1034:9: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1034:30: error: use of undeclared identifier '$tmpVar25_' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1065:9: error: use of undeclared identifier '$tmpVar25_'; did you mean '$tmpVar24_'? $tmpVar25_.setDims(tmp131); ^~~~~~~~~~ $tmpVar24_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.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_matrixTrDat0CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.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_matrixTrDat0CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.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_matrixTrDat0Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1128:9: error: use of undeclared identifier 'tmp113'; did you mean 'tmp103'? tmp113 = $tmpVar25_; ^~~~~~ tmp103 ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:1128:18: error: use of undeclared identifier '$tmpVar25_' tmp113 = $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.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_matrixTrDat0Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:2540:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp360; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Initialize.cpp:207:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_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_matrixTrDat0Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_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__matrixTrDat0_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Initialize.cpp:223:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_z__matrix(0, /*t4*/tmp384, tmp387, _x_q_, _xsig_s_, _r_s_, 0.0, 0.0, 0.0, false, tmp388); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_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__matrixTrDat0_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0CalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0.cpp:208:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_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_matrixTrDat0Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat0_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__matrixTrDat0_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_matrixTrDat0CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0CalcHelperMain.o] Error 1