Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.002192/0.002191, 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.266/2.266, 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.001092/0.001092, allocations: 82.23 kB / 261.7 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2479/0.2479, allocations: 38 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.49e-05/2.488e-05, allocations: 4 kB / 409.9 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 56.33 MB / 466.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4777/0.5863, allocations: 91.77 MB / 0.545 GB, free: 11.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.5866, allocations: 76.14 kB / 0.545 GB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06359/0.6502, allocations: 12.07 MB / 0.5568 GB, free: 6.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.6502, allocations: 0 / 0.5568 GB, free: 6.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.6503, allocations: 7.844 kB / 0.5568 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009216/0.6512, allocations: 0.5615 MB / 0.5574 GB, free: 5.723 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.6513, allocations: 7.75 kB / 0.5574 GB, free: 5.723 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.6513, allocations: 15.53 kB / 0.5574 GB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.6515, allocations: 203.8 kB / 0.5576 GB, free: 5.496 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.6515, allocations: 0 / 0.5576 GB, free: 5.496 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.6516, allocations: 3.984 kB / 0.5576 GB, free: 5.492 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000124/0.6517, allocations: 56.58 kB / 0.5576 GB, free: 5.488 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.6518, allocations: 94.47 kB / 0.5577 GB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.6519, allocations: 0.75 kB / 0.5577 GB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.6519, allocations: 4 kB / 0.5577 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.6519, allocations: 0 / 0.5577 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001312/0.652, allocations: 168 kB / 0.5579 GB, free: 5.258 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/0.6522, allocations: 96.45 kB / 0.558 GB, free: 5.227 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.6523, allocations: 82.67 kB / 0.5581 GB, free: 5.211 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.6523, allocations: 3.984 kB / 0.5581 GB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.6524, allocations: 37.69 kB / 0.5581 GB, free: 5.168 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.6524, allocations: 7.938 kB / 0.5581 GB, free: 5.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004275/0.6528, allocations: 173.7 kB / 0.5583 GB, free: 5.102 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.6529, allocations: 99.97 kB / 0.5584 GB, free: 5.004 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.653, allocations: 133.9 kB / 0.5585 GB, free: 4.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.653, allocations: 25.7 kB / 0.5585 GB, free: 4.867 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.196e-05/0.6531, allocations: 165.6 kB / 0.5587 GB, free: 4.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.735e-05/0.6531, allocations: 73.22 kB / 0.5588 GB, free: 4.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-06/0.6531, allocations: 0 / 0.5588 GB, free: 4.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.912e-05/0.6532, allocations: 322.1 kB / 0.5591 GB, free: 4.344 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.109e-05/0.6534, allocations: 60.53 kB / 0.5591 GB, free: 4.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.478e-05/0.6534, allocations: 63.86 kB / 0.5592 GB, free: 4.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.6537, allocations: 74.55 kB / 0.5592 GB, free: 4.309 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.6537, allocations: 3.953 kB / 0.5593 GB, free: 4.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003424/0.654, allocations: 168 kB / 0.5594 GB, free: 4.254 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.035e-05/0.6541, allocations: 67.09 kB / 0.5595 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.6541, allocations: 0 / 0.5595 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.6541, allocations: 3.719 kB / 0.5595 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.154e-06/0.6542, allocations: 0 / 0.5595 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.6542, allocations: 8 kB / 0.5595 GB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.872e-05/0.6543, allocations: 11.66 kB / 0.5595 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.6543, allocations: 15.73 kB / 0.5595 GB, free: 4.188 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.0001248/0.6544, allocations: 161.1 kB / 0.5597 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005872/0.655, allocations: 338.4 kB / 0.56 GB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.6551, allocations: 11.91 kB / 0.56 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.423e-05/0.6551, allocations: 11.81 kB / 0.56 GB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.6551, allocations: 0 / 0.56 GB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.6551, allocations: 4 kB / 0.56 GB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.6552, allocations: 4.031 kB / 0.56 GB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.6553, allocations: 176.5 kB / 0.5602 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6553, allocations: 0 / 0.5602 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.6553, allocations: 0 / 0.5602 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.6553, allocations: 0 / 0.5602 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.6553, allocations: 6.938 kB / 0.5602 GB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.6554, allocations: 3.984 kB / 0.5602 GB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6554, allocations: 4 kB / 0.5602 GB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006056/0.656, allocations: 357.7 kB / 0.5605 GB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.656, allocations: 96.81 kB / 0.5606 GB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.6561, allocations: 8 kB / 0.5606 GB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.457e-05/0.6561, allocations: 0 / 0.5606 GB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.6562, allocations: 6.312 kB / 0.5606 GB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.6562, allocations: 8 kB / 0.5607 GB, free: 3.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.908e-05/0.6563, allocations: 112.3 kB / 0.5608 GB, free: 3.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6563, allocations: 3.938 kB / 0.5608 GB, free: 3.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001281/0.6576, allocations: 377.2 kB / 0.5611 GB, free: 2.742 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.0022/0.6598, allocations: 1.204 MB / 0.5623 GB, free: 1.594 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008246/0.6607, allocations: 0.6896 MB / 0.563 GB, free: 1.164 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6607, allocations: 4.094 kB / 0.563 GB, free: 1.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005526/0.6613, allocations: 0.5614 MB / 0.5635 GB, free: 0.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.6615, allocations: 13.39 kB / 0.5635 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.6629, allocations: 0.5476 MB / 0.5641 GB, free: 280 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.6633, allocations: 0.7316 MB / 0.5648 GB, free: 15.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.664e-05/0.6634, allocations: 37.92 kB / 0.5648 GB, free: 15.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6634, allocations: 0 / 0.5648 GB, free: 15.5 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_matrixTrDat2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.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_matrixTrDat2Functions.cpp:497:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp63; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:820:22: error: expected '(' for function-style cast or type construction DynArrayDim4 tmp113; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:820:3: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:820:24: error: use of undeclared identifier 'tmp113' DynArrayDim4 tmp113; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1034:28: error: expected '(' for function-style cast or type construction DynArrayDim4 $tmpVar25_; ~~~~~~^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1034:9: error: use of undeclared identifier 'DynArrayDim4' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1034:30: error: use of undeclared identifier '$tmpVar25_' DynArrayDim4 $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1065:9: error: use of undeclared identifier '$tmpVar25_'; did you mean '$tmpVar24_'? $tmpVar25_.setDims(tmp131); ^~~~~~~~~~ $tmpVar24_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.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_matrixTrDat2CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.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_matrixTrDat2CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.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_matrixTrDat2Functions.cpp:1036:30: note: '$tmpVar24_' declared here DynArrayDim2 $tmpVar24_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1128:9: error: use of undeclared identifier 'tmp113'; did you mean 'tmp103'? tmp113 = $tmpVar25_; ^~~~~~ tmp103 ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:1128:18: error: use of undeclared identifier '$tmpVar25_' tmp113 = $tmpVar25_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.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_matrixTrDat2Functions.cpp:818:24: note: 'tmp103' declared here DynArrayDim1 tmp103; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:2540:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp360; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Initialize.cpp:303:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_z__matrix(2, /*t4*/tmp379, tmp382, _x_d_, _xsig_s_, _r_s_, _if0_, (3.141592653589793 + _alpha_if0_), _tol_, true, tmp383); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_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__matrixTrDat2_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Initialize.cpp:316:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_z__matrix(2, /*t4*/tmp384, tmp387, _x_q_, _xsig_s_, _r_s_, 0.0, 0.0, 0.0, false, tmp388); ^~~~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_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__matrixTrDat2_z__matrixRetType & output ) ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2CalcHelperMain.cpp:34: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2.cpp:304:93: error: no viable conversion from 'StatArrayDim1' to 'double' _functions->PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_z__matrix(2, /*t4*/tmp0, tmp3, _x_d_, _xsig_s_, _r_s_, _if0_, (3.141592653589793 + _alpha_if0_), _tol_, true, tmp4); ^~~~ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2Functions.cpp:473:182: note: passing argument to parameter 'x_' here void /*PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_z__matrixRetType */ Functions::PowerSystems_Examples_AC3ph_Precalculation_Z__matrixTrDat2_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__matrixTrDat2_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_matrixTrDat2CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2CalcHelperMain.o] Error 1