Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.001549/0.001548, allocations: 188.1 kB / 15.77 MB, free: 5.984 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.005/2.005, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.00113/0.00113, allocations: 98.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2673/0.2673, allocations: 38.05 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000679/0.000679, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1336, allocations: 56.34 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.002936/0.1366, allocations: 1.713 MB / 480.8 MB, free: 200 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.1377, allocations: 0.5273 MB / 481.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.397e-05/0.1378, allocations: 3.938 kB / 481.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.138, allocations: 15.92 kB / 481.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 8.757e-05/0.1381, allocations: 7.969 kB / 481.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002761/0.1384, allocations: 47.92 kB / 481.4 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 8.404e-05/0.1385, allocations: 43.88 kB / 481.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.34e-05/0.1386, allocations: 0 / 481.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.951e-05/0.1387, allocations: 23.92 kB / 481.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.255e-05/0.1387, allocations: 11.92 kB / 481.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.1388, allocations: 4 kB / 481.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.1389, allocations: 43.89 kB / 481.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.84e-05/0.139, allocations: 11.98 kB / 481.6 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.113e-05/0.139, allocations: 29.64 kB / 481.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.1392, allocations: 68.12 kB / 481.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1392, allocations: 0 / 481.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.531e-06/0.1392, allocations: 0 / 481.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1392, allocations: 11.94 kB / 481.7 MB, free: 15.34 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004196/0.1397, allocations: 381 kB / 482.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.1397, allocations: 8.031 kB / 482.1 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.698e-05/0.1398, allocations: 38.56 kB / 482.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.676e-05/0.1398, allocations: 11.86 kB / 482.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.14, allocations: 178.9 kB / 482.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.288e-06/0.1401, allocations: 4 kB / 482.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.1401, allocations: 0 / 482.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.1402, allocations: 65.56 kB / 482.4 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.1403, allocations: 4 kB / 482.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.1403, allocations: 0 / 482.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1403, allocations: 3.984 kB / 482.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.76e-05/0.1404, allocations: 24 kB / 482.4 MB, free: 14.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.1406, allocations: 173.5 kB / 482.6 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.1407, allocations: 54.56 kB / 482.6 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.1407, allocations: 4.031 kB / 482.6 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.1408, allocations: 38.5 kB / 482.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.1408, allocations: 224 / 482.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004713/0.1413, allocations: 264.3 kB / 482.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.727e-05/0.1413, allocations: 89.09 kB / 483 MB, free: 13.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.1415, allocations: 122.1 kB / 483.1 MB, free: 13.67 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.1415, allocations: 25.7 kB / 483.1 MB, free: 13.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/0.1416, allocations: 154.6 kB / 483.3 MB, free: 13.49 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.1417, allocations: 39.36 kB / 483.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-06/0.1417, allocations: 32 / 483.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1418, allocations: 326.8 kB / 483.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.487e-05/0.1419, allocations: 27.98 kB / 483.7 MB, free: 13.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.333e-05/0.142, allocations: 31.92 kB / 483.7 MB, free: 13.06 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.1421, allocations: 73.69 kB / 483.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1422, allocations: 3.938 kB / 483.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00024/0.1424, allocations: 135.4 kB / 483.9 MB, free: 12.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.4e-05/0.1425, allocations: 53.67 kB / 484 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1425, allocations: 4 kB / 484 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1425, allocations: 0 / 484 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.382e-06/0.1426, allocations: 4.062 kB / 484 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1426, allocations: 0 / 484 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.1426, allocations: 7.906 kB / 484 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.1427, allocations: 4 kB / 484 MB, free: 12.76 MB / 330.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.0002309/0.1429, allocations: 167.5 kB / 484.2 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.1429, allocations: 7.906 kB / 484.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.143, allocations: 12.36 kB / 484.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.143, allocations: 0 / 484.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.143, allocations: 0 / 484.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.143, allocations: 4 kB / 484.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.1432, allocations: 181.5 kB / 484.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1432, allocations: 0 / 484.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-06/0.1432, allocations: 0 / 484.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1432, allocations: 3.938 kB / 484.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1432, allocations: 4 kB / 484.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1433, allocations: 0 / 484.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.1433, allocations: 3.938 kB / 484.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.1438, allocations: 282.5 kB / 484.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.1438, allocations: 81.02 kB / 484.7 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.1439, allocations: 7.984 kB / 484.7 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.597e-05/0.1439, allocations: 4 kB / 484.7 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.248e-05/0.144, allocations: 0 / 484.7 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.144, allocations: 4 kB / 484.7 MB, free: 11.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.423e-05/0.1441, allocations: 91.27 kB / 484.8 MB, free: 11.81 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1441, allocations: 0 / 484.8 MB, free: 11.81 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000324/0.1444, allocations: 32 kB / 484.9 MB, free: 11.78 MB / 330.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.0008892/0.1453, allocations: 0.8295 MB / 485.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004943/0.1458, allocations: 287.3 kB / 486 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1458, allocations: 0 / 486 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003008/0.1462, allocations: 223.3 kB / 486.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.1464, allocations: 8.156 kB / 486.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.1481, allocations: 0.8327 MB / 487 MB, free: 9.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.1486, allocations: 0.7082 MB / 487.7 MB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.119e-05/0.1486, allocations: 15.44 kB / 487.8 MB, free: 8.75 MB / 330.7 MB Notification: Performance of SimCode: time 3.838e-06/0.1486, allocations: 0 / 487.8 MB, free: 8.75 MB / 330.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_Z_matrixEqCirc1CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1Functions.cpp:37:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp8; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1FMU.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 1 error generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1CalcHelperMain.o] Error 1