Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.00151/0.00151, allocations: 181.6 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 90.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2766/0.2766, allocations: 38.05 MB / 356.6 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004636/0.0004636, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1209, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5062/0.6272, allocations: 89.46 MB / 0.5553 GB, free: 9.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.6276, allocations: 80.02 kB / 0.5553 GB, free: 9.117 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03056/0.6581, allocations: 5.709 MB / 0.5609 GB, free: 4.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.6582, allocations: 0 / 0.5609 GB, free: 4.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.6582, allocations: 8 kB / 0.5609 GB, free: 4.422 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000545/0.6588, allocations: 469.9 kB / 0.5614 GB, free: 3.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.6588, allocations: 12.03 kB / 0.5614 GB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.938e-05/0.6589, allocations: 61.77 kB / 0.5614 GB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.51e-05/0.659, allocations: 11.81 kB / 0.5615 GB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.6592, allocations: 206.4 kB / 0.5616 GB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.6592, allocations: 4 kB / 0.5617 GB, free: 3.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.6593, allocations: 11.56 kB / 0.5617 GB, free: 3.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.6596, allocations: 129.7 kB / 0.5618 GB, free: 3.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.6596, allocations: 0 / 0.5618 GB, free: 3.469 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.6596, allocations: 3.375 kB / 0.5618 GB, free: 3.469 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.6596, allocations: 3.984 kB / 0.5618 GB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.6598, allocations: 82.83 kB / 0.5619 GB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004823/0.6603, allocations: 365 kB / 0.5622 GB, free: 3.016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.6605, allocations: 138.2 kB / 0.5624 GB, free: 2.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.6605, allocations: 0 / 0.5624 GB, free: 2.926 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.6606, allocations: 30.56 kB / 0.5624 GB, free: 2.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.6606, allocations: 0 / 0.5624 GB, free: 2.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.000628/0.6612, allocations: 390.7 kB / 0.5628 GB, free: 2.516 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.6613, allocations: 92.91 kB / 0.5628 GB, free: 2.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.6614, allocations: 119.8 kB / 0.563 GB, free: 2.289 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.6614, allocations: 29.7 kB / 0.563 GB, free: 2.254 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.6615, allocations: 173.1 kB / 0.5631 GB, free: 2.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.583e-05/0.6616, allocations: 65.84 kB / 0.5632 GB, free: 2.035 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.819e-06/0.6616, allocations: 0 / 0.5632 GB, free: 2.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.6617, allocations: 322.6 kB / 0.5635 GB, free: 1.715 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.6618, allocations: 58.81 kB / 0.5636 GB, free: 1.668 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.6619, allocations: 61.66 kB / 0.5636 GB, free: 1.617 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.6621, allocations: 108.1 kB / 0.5637 GB, free: 1.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.6621, allocations: 0 / 0.5637 GB, free: 1.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003484/0.6625, allocations: 214.6 kB / 0.5639 GB, free: 1.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.58e-05/0.6625, allocations: 62.84 kB / 0.564 GB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.6626, allocations: 0 / 0.564 GB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.6626, allocations: 3.938 kB / 0.564 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.773e-06/0.6626, allocations: 0 / 0.564 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.6626, allocations: 0 / 0.564 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.684e-05/0.6627, allocations: 23.86 kB / 0.564 GB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.6628, allocations: 4 kB / 0.564 GB, free: 1.23 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 () * Number of clocked 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.0001654/0.6629, allocations: 182.7 kB / 0.5642 GB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.663, allocations: 11.91 kB / 0.5642 GB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.075e-05/0.663, allocations: 12.38 kB / 0.5642 GB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.663, allocations: 0 / 0.5642 GB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.663, allocations: 0 / 0.5642 GB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6631, allocations: 0 / 0.5642 GB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.6633, allocations: 218.6 kB / 0.5644 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6633, allocations: 4 kB / 0.5644 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.001e-06/0.6633, allocations: 0 / 0.5644 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.6633, allocations: 0 / 0.5644 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.6634, allocations: 12 kB / 0.5645 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.6634, allocations: 0 / 0.5645 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.6634, allocations: 3.938 kB / 0.5645 GB, free: 0.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006247/0.664, allocations: 459.5 kB / 0.5649 GB, free: 348 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.6641, allocations: 88.64 kB / 0.565 GB, free: 244 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.6641, allocations: 7.953 kB / 0.565 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.6642, allocations: 8.031 kB / 0.565 GB, free: 228 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.6643, allocations: 4 kB / 0.565 GB, free: 224 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.6643, allocations: 4 kB / 0.565 GB, free: 220 kB / 362.7 MB Notification: Performance of sorting global known variables: time 7.02e-05/0.6644, allocations: 107.3 kB / 0.5651 GB, free: 120 kB / 362.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6644, allocations: 0 / 0.5651 GB, free: 120 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007038/0.6651, allocations: 151.1 kB / 0.5652 GB, free: 15.97 MB / 378.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 () * Number of clocked 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.002084/0.6672, allocations: 1.237 MB / 0.5665 GB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008815/0.6681, allocations: 0.5703 MB / 0.567 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6681, allocations: 0 / 0.567 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000543/0.6687, allocations: 471.1 kB / 0.5675 GB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.669, allocations: 19.45 kB / 0.5675 GB, free: 14.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.6719, allocations: 1.371 MB / 0.5688 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.6724, allocations: 0.7355 MB / 0.5695 GB, free: 12.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.8e-05/0.6725, allocations: 37.73 kB / 0.5696 GB, free: 12.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6725, allocations: 0 / 0.5696 GB, free: 12.21 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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircCalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircCalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:247:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp23; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:257:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp33; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:279:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp60; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:281:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp62; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:288:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp74; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:291:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp77; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:446:19: error: use of undeclared identifier '_omcQ_24tmpVar11_'; did you mean '_omcQ_24tmpVar12_'? tmp55 = _omcQ_24tmpVar11_; ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar12_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:423:14: note: '_omcQ_24tmpVar12_' declared here double _omcQ_24tmpVar12_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:510:40: error: use of undeclared identifier '_omcQ_24tmpVar14_'; did you mean '_omcQ_24tmpVar15_'? _omcQ_24tmpVar15_ = std::abs(_omcQ_24tmpVar14_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar15_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:482:14: note: '_omcQ_24tmpVar15_' declared here double _omcQ_24tmpVar15_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:573:40: error: use of undeclared identifier '_omcQ_24tmpVar17_'; did you mean '_omcQ_24tmpVar18_'? _omcQ_24tmpVar18_ = std::abs(_omcQ_24tmpVar17_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar18_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:545:14: note: '_omcQ_24tmpVar18_' declared here double _omcQ_24tmpVar18_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:783:32: error: invalid argument type 'DynArrayDim1' to unary expression y_(j_) = division((-tmp106),Tc_(j_),!_initial,"Tc[j]") /*stmtAssign*/; ^~~~~~~ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircCalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 10 errors generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircCalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircCalcHelperMain.o] Error 1