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.001506/0.001507, allocations: 185.2 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.025/2.025, allocations: 205.2 MB / 218.9 MB, free: 9.145 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.001052/0.001052, allocations: 83.5 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2664/0.2664, allocations: 37.96 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.293e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1349, allocations: 56.32 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4923/0.6272, allocations: 86.99 MB / 0.5471 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/0.6276, allocations: 83.94 kB / 0.5472 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007233/0.6348, allocations: 1.553 MB / 0.5487 GB, free: 15.08 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.6349, allocations: 0 / 0.5487 GB, free: 15.08 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.6349, allocations: 0 / 0.5487 GB, free: 15.08 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003967/0.6353, allocations: 394.2 kB / 0.549 GB, free: 14.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.6354, allocations: 8.031 kB / 0.5491 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.818e-05/0.6354, allocations: 34.56 kB / 0.5491 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.578e-05/0.6355, allocations: 7.906 kB / 0.5491 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.6357, allocations: 186.8 kB / 0.5493 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.6357, allocations: 4 kB / 0.5493 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.6357, allocations: 0 / 0.5493 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.6359, allocations: 61.67 kB / 0.5493 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.6359, allocations: 0 / 0.5493 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.6359, allocations: 0 / 0.5493 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.636, allocations: 4 kB / 0.5493 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.316e-05/0.6361, allocations: 31.98 kB / 0.5494 GB, free: 14.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002111/0.6363, allocations: 165.6 kB / 0.5495 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.6364, allocations: 58.5 kB / 0.5496 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.339e-05/0.6365, allocations: 44.88 kB / 0.5496 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.218e-06/0.6365, allocations: 0 / 0.5496 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.6366, allocations: 34.5 kB / 0.5497 GB, free: 13.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.663e-06/0.6366, allocations: 4 kB / 0.5497 GB, free: 13.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003128/0.6369, allocations: 143.5 kB / 0.5498 GB, free: 13.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/0.637, allocations: 93.03 kB / 0.5499 GB, free: 13.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.6371, allocations: 116 kB / 0.55 GB, free: 13.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.6372, allocations: 25.7 kB / 0.55 GB, free: 13.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.731e-05/0.6373, allocations: 154.6 kB / 0.5502 GB, free: 13.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.497e-05/0.6373, allocations: 43.44 kB / 0.5502 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.6374, allocations: 0 / 0.5502 GB, free: 13.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.6375, allocations: 322.8 kB / 0.5505 GB, free: 12.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.734e-05/0.6376, allocations: 27.98 kB / 0.5505 GB, free: 12.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.258e-05/0.6377, allocations: 31.98 kB / 0.5506 GB, free: 12.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.6378, allocations: 73.67 kB / 0.5506 GB, free: 12.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.6378, allocations: 0 / 0.5506 GB, free: 12.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002619/0.6381, allocations: 143.3 kB / 0.5508 GB, free: 12.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.832e-05/0.6382, allocations: 49.58 kB / 0.5508 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.6382, allocations: 4 kB / 0.5508 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.6382, allocations: 3.938 kB / 0.5508 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.6382, allocations: 0 / 0.5508 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.6383, allocations: 8 kB / 0.5508 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.13e-05/0.6383, allocations: 11.92 kB / 0.5509 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.6384, allocations: 4 kB / 0.5509 GB, free: 12.58 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.0001444/0.6385, allocations: 154.6 kB / 0.551 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.6386, allocations: 11.91 kB / 0.551 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.522e-05/0.6386, allocations: 8.625 kB / 0.551 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.6386, allocations: 0 / 0.551 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.6386, allocations: 0 / 0.551 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.6386, allocations: 0 / 0.551 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.6388, allocations: 185.5 kB / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.6388, allocations: 0 / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.122e-06/0.6388, allocations: 0 / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.6389, allocations: 0 / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.6389, allocations: 4 kB / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.6389, allocations: 0 / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.6389, allocations: 0 / 0.5512 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.6394, allocations: 271.2 kB / 0.5515 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/0.6395, allocations: 92.97 kB / 0.5516 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.6395, allocations: 4.031 kB / 0.5516 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.889e-05/0.6396, allocations: 4 kB / 0.5516 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.517e-05/0.6396, allocations: 7.875 kB / 0.5516 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.6396, allocations: 7.984 kB / 0.5516 GB, free: 11.74 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.078e-05/0.6397, allocations: 95.77 kB / 0.5517 GB, free: 11.64 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-07/0.6397, allocations: 3.938 kB / 0.5517 GB, free: 11.64 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003111/0.64, allocations: 35.94 kB / 0.5517 GB, free: 11.61 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.00096/0.641, allocations: 0.817 MB / 0.5525 GB, free: 10.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005005/0.6415, allocations: 287.2 kB / 0.5528 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6415, allocations: 0 / 0.5528 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.6419, allocations: 219.4 kB / 0.553 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.6421, allocations: 15.98 kB / 0.553 GB, free: 10.22 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006635/0.6428, allocations: 276.5 kB / 0.5533 GB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.6431, allocations: 0.7043 MB / 0.554 GB, free: 9.176 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.42e-05/0.6432, allocations: 15.44 kB / 0.554 GB, free: 9.16 MB / 394.7 MB Notification: Performance of SimCode: time 7.22e-07/0.6432, allocations: 0 / 0.554 GB, free: 9.16 MB / 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_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