Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.001617/0.001623, allocations: 189.5 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001159/0.001158, allocations: 98.78 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2629/0.2629, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005064/0.0005067, allocations: 8 kB / 422.8 MB, free: 26.35 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.11, allocations: 56.34 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.002979/0.113, allocations: 1.709 MB / 480.8 MB, free: 220 kB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.1142, allocations: 0.5351 MB / 481.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.1143, allocations: 3.938 kB / 481.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.1145, allocations: 11.98 kB / 481.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 5.022e-05/0.1145, allocations: 11.91 kB / 481.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.1149, allocations: 47.94 kB / 481.5 MB, free: 15.6 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 8.205e-05/0.115, allocations: 35.88 kB / 481.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.092e-05/0.115, allocations: 3.984 kB / 481.5 MB, free: 15.56 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.1151, allocations: 23.94 kB / 481.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.568e-05/0.1152, allocations: 19.91 kB / 481.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.1152, allocations: 0 / 481.5 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.1154, allocations: 43.95 kB / 481.6 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.141e-05/0.1155, allocations: 39.84 kB / 481.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.1155, allocations: 37.64 kB / 481.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.1157, allocations: 88.11 kB / 481.7 MB, free: 15.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.1157, allocations: 3.938 kB / 481.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.125e-06/0.1157, allocations: 0 / 481.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.1158, allocations: 0 / 481.7 MB, free: 15.3 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005218/0.1163, allocations: 476.4 kB / 482.2 MB, free: 14.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.1164, allocations: 16.02 kB / 482.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.1164, allocations: 42.55 kB / 482.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.778e-05/0.1165, allocations: 19.77 kB / 482.3 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.1167, allocations: 195.3 kB / 482.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1167, allocations: 0 / 482.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.1167, allocations: 4 kB / 482.5 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.117, allocations: 122.7 kB / 482.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.117, allocations: 0 / 482.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.117, allocations: 4 kB / 482.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.117, allocations: 0 / 482.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001522/0.1172, allocations: 92.28 kB / 482.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002132/0.1174, allocations: 198 kB / 482.9 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.1177, allocations: 158.8 kB / 483 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.1177, allocations: 0 / 483 MB, free: 13.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1177, allocations: 38.55 kB / 483.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 1.423e-06/0.1177, allocations: 4 kB / 483.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008785/0.1186, allocations: 0.5521 MB / 483.6 MB, free: 13.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/0.1187, allocations: 113 kB / 483.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.1189, allocations: 143 kB / 483.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.1189, allocations: 29.7 kB / 483.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.222e-05/0.119, allocations: 159.2 kB / 484.1 MB, free: 12.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.1192, allocations: 133.9 kB / 484.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.1192, allocations: 0 / 484.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1194, allocations: 334.8 kB / 484.5 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.1195, allocations: 99.89 kB / 484.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.1197, allocations: 95.91 kB / 484.7 MB, free: 12.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.12, allocations: 179 kB / 484.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.12, allocations: 0 / 484.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004975/0.1205, allocations: 319.1 kB / 485.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.1206, allocations: 81.64 kB / 485.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1206, allocations: 0 / 485.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1207, allocations: 0 / 485.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.422e-06/0.1207, allocations: 0 / 485.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.1207, allocations: 4.062 kB / 485.3 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.357e-05/0.1208, allocations: 23.69 kB / 485.3 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.855e-05/0.1208, allocations: 11.98 kB / 485.3 MB, free: 11.44 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.0002903/0.1211, allocations: 231.4 kB / 485.6 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/0.1212, allocations: 23.72 kB / 485.6 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.165e-05/0.1212, allocations: 13.95 kB / 485.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1212, allocations: 0 / 485.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1213, allocations: 0 / 485.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1213, allocations: 0 / 485.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.1215, allocations: 229.4 kB / 485.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1215, allocations: 0 / 485.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.1215, allocations: 0 / 485.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.1215, allocations: 4 kB / 485.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.1216, allocations: 4 kB / 485.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1216, allocations: 0 / 485.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1216, allocations: 0 / 485.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.1231, allocations: 0.9004 MB / 486.7 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.1232, allocations: 96.8 kB / 486.8 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.1233, allocations: 12.03 kB / 486.8 MB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.857e-05/0.1233, allocations: 7.984 kB / 486.8 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.1234, allocations: 11.94 kB / 486.8 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.1234, allocations: 7.984 kB / 486.9 MB, free: 9.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1236, allocations: 112.6 kB / 487 MB, free: 9.695 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1236, allocations: 0 / 487 MB, free: 9.695 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003755/0.124, allocations: 60 kB / 487 MB, free: 9.637 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.001932/0.1259, allocations: 1.465 MB / 488.5 MB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002222/0.1282, allocations: 1.585 MB / 490.1 MB, free: 6.539 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.1282, allocations: 0 / 490.1 MB, free: 6.539 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001727/0.1299, allocations: 1.374 MB / 491.4 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.1303, allocations: 19.94 kB / 491.5 MB, free: 5.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003607/0.1339, allocations: 1.876 MB / 493.3 MB, free: 3.199 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004225/0.1344, allocations: 0.752 MB / 494.1 MB, free: 2.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.1345, allocations: 39.42 kB / 494.1 MB, free: 2.383 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1345, allocations: 0 / 494.1 MB, free: 2.383 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_matrixEqCirc3CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3Functions.cpp:37:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp7; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3FMU.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_matrixEqCirc3CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3CalcHelperMain.o] Error 1