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.001435/0.001434, allocations: 186.4 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.101/2.101, allocations: 205.3 MB / 213.7 MB, free: 1.672 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.001075/0.001075, allocations: 86.7 kB / 261.8 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2597/0.2597, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.005e-05/2.014e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1443, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6307/0.7751, allocations: 88.69 MB / 0.542 GB, free: 11.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.7754, allocations: 80.53 kB / 0.542 GB, free: 11.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02976/0.8052, allocations: 5.674 MB / 0.5476 GB, free: 9.289 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.8053, allocations: 0 / 0.5476 GB, free: 9.289 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.8053, allocations: 3.906 kB / 0.5476 GB, free: 9.289 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.0004709/0.8058, allocations: 460.7 kB / 0.548 GB, free: 8.836 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.8058, allocations: 11.53 kB / 0.548 GB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.8059, allocations: 7.719 kB / 0.548 GB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.8061, allocations: 201.4 kB / 0.5482 GB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.8061, allocations: 3.875 kB / 0.5482 GB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.8061, allocations: 3.938 kB / 0.5482 GB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001353/0.8063, allocations: 53.16 kB / 0.5483 GB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.8064, allocations: 97.95 kB / 0.5484 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.8065, allocations: 0 / 0.5484 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.8065, allocations: 0 / 0.5484 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.8065, allocations: 7.953 kB / 0.5484 GB, free: 8.547 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.8066, allocations: 145.1 kB / 0.5485 GB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.8068, allocations: 127.3 kB / 0.5486 GB, free: 8.348 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.807, allocations: 115 kB / 0.5488 GB, free: 8.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.807, allocations: 3.656 kB / 0.5488 GB, free: 8.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.807, allocations: 37.62 kB / 0.5488 GB, free: 8.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.633e-06/0.807, allocations: 4 kB / 0.5488 GB, free: 8.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003981/0.8074, allocations: 177.7 kB / 0.549 GB, free: 8.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.8075, allocations: 89.39 kB / 0.549 GB, free: 8.125 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.227e-05/0.8076, allocations: 120.4 kB / 0.5492 GB, free: 8.023 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.8076, allocations: 25.7 kB / 0.5492 GB, free: 7.992 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.802e-05/0.8077, allocations: 156.8 kB / 0.5493 GB, free: 7.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.463e-05/0.8078, allocations: 63.95 kB / 0.5494 GB, free: 7.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-06/0.8078, allocations: 3.938 kB / 0.5494 GB, free: 7.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.798e-05/0.8078, allocations: 318.2 kB / 0.5497 GB, free: 7.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.908e-05/0.8079, allocations: 55.31 kB / 0.5498 GB, free: 7.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.577e-05/0.8081, allocations: 64.94 kB / 0.5498 GB, free: 7.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.8082, allocations: 64.72 kB / 0.5499 GB, free: 7.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.8082, allocations: 0 / 0.5499 GB, free: 7.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003337/0.8086, allocations: 171.4 kB / 0.55 GB, free: 7.375 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/0.8087, allocations: 58.3 kB / 0.5501 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.8087, allocations: 0 / 0.5501 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.8087, allocations: 3.953 kB / 0.5501 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.214e-06/0.8087, allocations: 3.984 kB / 0.5501 GB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.8087, allocations: 0 / 0.5501 GB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.605e-05/0.8088, allocations: 19.69 kB / 0.5501 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.8089, allocations: 15.67 kB / 0.5501 GB, free: 7.305 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.0001166/0.809, allocations: 164.1 kB / 0.5503 GB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004988/0.8095, allocations: 272.3 kB / 0.5506 GB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.8095, allocations: 15.66 kB / 0.5506 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.373e-05/0.8096, allocations: 12.58 kB / 0.5506 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.8096, allocations: 0 / 0.5506 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.8096, allocations: 0 / 0.5506 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.8096, allocations: 0 / 0.5506 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.8097, allocations: 176.2 kB / 0.5508 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.8098, allocations: 0 / 0.5508 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-06/0.8098, allocations: 3.938 kB / 0.5508 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.8098, allocations: 0 / 0.5508 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.8098, allocations: 6.906 kB / 0.5508 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.8098, allocations: 4.859 kB / 0.5508 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8098, allocations: 0 / 0.5508 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000523/0.8104, allocations: 300.3 kB / 0.5511 GB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.502e-05/0.8104, allocations: 100.7 kB / 0.5512 GB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.8105, allocations: 7.922 kB / 0.5512 GB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.983e-05/0.8105, allocations: 3.875 kB / 0.5512 GB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.8106, allocations: 3.5 kB / 0.5512 GB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.8106, allocations: 7.844 kB / 0.5512 GB, free: 6.641 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.731e-05/0.8107, allocations: 100.3 kB / 0.5513 GB, free: 6.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8107, allocations: 0 / 0.5513 GB, free: 6.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006094/0.8113, allocations: 139.9 kB / 0.5514 GB, free: 6.535 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.001494/0.8128, allocations: 1.076 MB / 0.5525 GB, free: 5.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006724/0.8135, allocations: 0.5502 MB / 0.553 GB, free: 5.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.8135, allocations: 0 / 0.553 GB, free: 5.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004241/0.814, allocations: 464.7 kB / 0.5534 GB, free: 5.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.8142, allocations: 23.42 kB / 0.5535 GB, free: 5.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008919/0.8151, allocations: 432.4 kB / 0.5539 GB, free: 5.387 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.8153, allocations: 0.718 MB / 0.5546 GB, free: 4.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.241e-05/0.8154, allocations: 33.45 kB / 0.5546 GB, free: 4.66 MB / 362.7 MB Notification: Performance of SimCode: time 8.51e-07/0.8154, allocations: 0 / 0.5546 GB, free: 4.66 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_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: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/OMCompiler/build/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 7 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