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.002325/0.002325, allocations: 185.4 kB / 13.19 MB, free: 2.125 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.049/2.049, allocations: 205.2 MB / 218.9 MB, free: 9.199 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.001124/0.001124, allocations: 85.08 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2702/0.2702, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.619e-05/3.628e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 56.31 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4711/0.5824, allocations: 89.37 MB / 0.5494 GB, free: 14.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/0.5828, allocations: 75.95 kB / 0.5495 GB, free: 14.15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03359/0.6164, allocations: 5.712 MB / 0.555 GB, free: 8.449 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6165, allocations: 0 / 0.555 GB, free: 8.449 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.407e-05/0.6165, allocations: 4 kB / 0.555 GB, free: 8.445 MB / 394.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.0005928/0.6171, allocations: 448.6 kB / 0.5555 GB, free: 7.957 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.6172, allocations: 12.03 kB / 0.5555 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.6173, allocations: 62.3 kB / 0.5555 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.6173, allocations: 15.75 kB / 0.5556 GB, free: 7.859 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.6176, allocations: 206.8 kB / 0.5558 GB, free: 7.617 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.6177, allocations: 7.984 kB / 0.5558 GB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.6177, allocations: 8 kB / 0.5558 GB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.6181, allocations: 129.6 kB / 0.5559 GB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.6181, allocations: 3.938 kB / 0.5559 GB, free: 7.465 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.6181, allocations: 8 kB / 0.5559 GB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.351e-06/0.6181, allocations: 0 / 0.5559 GB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000215/0.6184, allocations: 83.95 kB / 0.556 GB, free: 7.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.619, allocations: 360.4 kB / 0.5563 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.6192, allocations: 134.4 kB / 0.5565 GB, free: 6.832 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.6195, allocations: 124.8 kB / 0.5566 GB, free: 6.707 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.6195, allocations: 0 / 0.5566 GB, free: 6.707 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.6195, allocations: 34.56 kB / 0.5566 GB, free: 6.664 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 1.773e-06/0.6195, allocations: 0 / 0.5566 GB, free: 6.664 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.000527/0.6201, allocations: 223.2 kB / 0.5568 GB, free: 6.434 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.11e-05/0.6202, allocations: 97.09 kB / 0.5569 GB, free: 6.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.6203, allocations: 117.2 kB / 0.557 GB, free: 6.195 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.6204, allocations: 25.7 kB / 0.557 GB, free: 6.164 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.6205, allocations: 166.9 kB / 0.5572 GB, free: 6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.491e-05/0.6206, allocations: 66.95 kB / 0.5573 GB, free: 5.934 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-06/0.6206, allocations: 32 / 0.5573 GB, free: 5.934 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.6207, allocations: 326.8 kB / 0.5576 GB, free: 5.605 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.6209, allocations: 55.97 kB / 0.5576 GB, free: 5.551 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.621, allocations: 51.97 kB / 0.5577 GB, free: 5.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.6212, allocations: 117.8 kB / 0.5578 GB, free: 5.379 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6213, allocations: 0 / 0.5578 GB, free: 5.379 MB / 394.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004358/0.6217, allocations: 219.1 kB / 0.558 GB, free: 5.152 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.093e-05/0.6218, allocations: 53.67 kB / 0.5581 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.6218, allocations: 0 / 0.5581 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.6219, allocations: 4 kB / 0.5581 GB, free: 5.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.6219, allocations: 8 kB / 0.5581 GB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.6219, allocations: 0 / 0.5581 GB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.218e-05/0.622, allocations: 7.906 kB / 0.5581 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/0.622, allocations: 15.94 kB / 0.5581 GB, free: 5.059 MB / 394.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.0001605/0.6222, allocations: 158.7 kB / 0.5582 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/0.6223, allocations: 11.91 kB / 0.5583 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.928e-05/0.6223, allocations: 8.75 kB / 0.5583 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.6223, allocations: 0 / 0.5583 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.6223, allocations: 0 / 0.5583 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.6224, allocations: 4 kB / 0.5583 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003061/0.6227, allocations: 221.4 kB / 0.5585 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.6227, allocations: 0 / 0.5585 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-06/0.6227, allocations: 0 / 0.5585 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.6227, allocations: 0 / 0.5585 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.6227, allocations: 4 kB / 0.5585 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.6228, allocations: 7.984 kB / 0.5585 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6228, allocations: 0 / 0.5585 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008005/0.6236, allocations: 460.9 kB / 0.5589 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.265e-05/0.6237, allocations: 88.86 kB / 0.559 GB, free: 4.008 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.593e-05/0.6237, allocations: 7.953 kB / 0.559 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.6238, allocations: 4 kB / 0.559 GB, free: 3.996 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.6239, allocations: 7.938 kB / 0.559 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.6239, allocations: 8 kB / 0.559 GB, free: 3.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001076/0.624, allocations: 107.8 kB / 0.5591 GB, free: 3.875 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6241, allocations: 0 / 0.5591 GB, free: 3.875 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007195/0.6248, allocations: 147.8 kB / 0.5593 GB, free: 3.73 MB / 394.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.002098/0.6269, allocations: 1.238 MB / 0.5605 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000986/0.6279, allocations: 0.5618 MB / 0.561 GB, free: 1.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6279, allocations: 0 / 0.561 GB, free: 1.887 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006349/0.6286, allocations: 463.3 kB / 0.5615 GB, free: 1.422 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.6289, allocations: 24.09 kB / 0.5615 GB, free: 1.398 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.6302, allocations: 472.8 kB / 0.562 GB, free: 0.8945 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.6307, allocations: 0.7355 MB / 0.5627 GB, free: 136 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.254e-05/0.6308, allocations: 35.42 kB / 0.5627 GB, free: 100 kB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6308, allocations: 0 / 0.5627 GB, free: 100 kB / 394.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 'D_24tmpVar11_'; did you mean 'D_24tmpVar12_'? tmp55 = D_24tmpVar11_; ^~~~~~~~~~~~~ D_24tmpVar12_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:423:14: note: 'D_24tmpVar12_' declared here double D_24tmpVar12_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:510:36: error: use of undeclared identifier 'D_24tmpVar14_'; did you mean 'D_24tmpVar15_'? D_24tmpVar15_ = std::abs(D_24tmpVar14_); ^~~~~~~~~~~~~ D_24tmpVar15_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:482:14: note: 'D_24tmpVar15_' declared here double D_24tmpVar15_; ^ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:573:36: error: use of undeclared identifier 'D_24tmpVar17_'; did you mean 'D_24tmpVar18_'? D_24tmpVar18_ = std::abs(D_24tmpVar17_); ^~~~~~~~~~~~~ D_24tmpVar18_ ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCircFunctions.cpp:545:14: note: 'D_24tmpVar18_' declared here double D_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