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.00161/0.00161, allocations: 182.4 kB / 15.76 MB, free: 6.344 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.043/2.043, 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.001189/0.001189, allocations: 94.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2999/0.2999, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.0004741, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1214, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4957/0.6171, allocations: 87.05 MB / 0.5529 GB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/0.6175, allocations: 85 kB / 0.553 GB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007989/0.6255, allocations: 1.801 MB / 0.5548 GB, free: 9.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.6256, allocations: 0 / 0.5548 GB, free: 9.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.6256, allocations: 5.859 kB / 0.5548 GB, free: 9.449 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0004425/0.6261, allocations: 473.2 kB / 0.5552 GB, free: 8.945 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.6261, allocations: 8.031 kB / 0.5552 GB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.6262, allocations: 50.23 kB / 0.5553 GB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.184e-05/0.6262, allocations: 15.72 kB / 0.5553 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.6265, allocations: 201.6 kB / 0.5555 GB, free: 8.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-06/0.6265, allocations: 9.438 kB / 0.5555 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.6265, allocations: 0 / 0.5555 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.6268, allocations: 129.4 kB / 0.5556 GB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.6268, allocations: 0 / 0.5556 GB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.6268, allocations: 0 / 0.5556 GB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.6268, allocations: 0 / 0.5556 GB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.627, allocations: 98.41 kB / 0.5557 GB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000179/0.6272, allocations: 205.7 kB / 0.5559 GB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.6273, allocations: 154.6 kB / 0.556 GB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.6274, allocations: 0 / 0.556 GB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.6274, allocations: 34.59 kB / 0.5561 GB, free: 8.055 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.764e-06/0.6274, allocations: 0 / 0.5561 GB, free: 8.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007779/0.6282, allocations: 0.5689 MB / 0.5566 GB, free: 7.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.6283, allocations: 108.3 kB / 0.5567 GB, free: 7.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.6285, allocations: 127.3 kB / 0.5569 GB, free: 7.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.6285, allocations: 29.7 kB / 0.5569 GB, free: 7.242 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.357e-05/0.6285, allocations: 163.6 kB / 0.557 GB, free: 7.086 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.6287, allocations: 135.4 kB / 0.5572 GB, free: 6.973 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-06/0.6287, allocations: 3.938 kB / 0.5572 GB, free: 6.969 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.996e-05/0.6288, allocations: 322.3 kB / 0.5575 GB, free: 6.648 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.6289, allocations: 89.84 kB / 0.5576 GB, free: 6.582 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.629, allocations: 95.89 kB / 0.5577 GB, free: 6.512 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.6293, allocations: 188.4 kB / 0.5578 GB, free: 6.348 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.6293, allocations: 0 / 0.5578 GB, free: 6.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000453/0.6298, allocations: 324.7 kB / 0.5581 GB, free: 6.062 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.6299, allocations: 96.69 kB / 0.5582 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.6299, allocations: 0 / 0.5582 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.6299, allocations: 0 / 0.5582 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.764e-06/0.63, allocations: 0 / 0.5582 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.63, allocations: 0 / 0.5582 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.332e-05/0.6301, allocations: 20.62 kB / 0.5583 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.854e-05/0.6301, allocations: 8 kB / 0.5583 GB, free: 5.945 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 () * 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.0002515/0.6304, allocations: 235.4 kB / 0.5585 GB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.6e-05/0.6304, allocations: 19.81 kB / 0.5585 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.678e-05/0.6305, allocations: 13.97 kB / 0.5585 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.6305, allocations: 0 / 0.5585 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6305, allocations: 0 / 0.5585 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.6305, allocations: 0 / 0.5585 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.6307, allocations: 239.5 kB / 0.5588 GB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.6307, allocations: 4.828 kB / 0.5588 GB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-06/0.6307, allocations: 0 / 0.5588 GB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.6307, allocations: 0 / 0.5588 GB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.6308, allocations: 8 kB / 0.5588 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.6308, allocations: 0 / 0.5588 GB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.6308, allocations: 4 kB / 0.5588 GB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.6321, allocations: 0.9006 MB / 0.5597 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.443e-05/0.6322, allocations: 100.7 kB / 0.5597 GB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.754e-05/0.6322, allocations: 8 kB / 0.5598 GB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.56e-05/0.6323, allocations: 4 kB / 0.5598 GB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.6324, allocations: 11.92 kB / 0.5598 GB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.602e-05/0.6324, allocations: 8 kB / 0.5598 GB, free: 4.461 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.798e-05/0.6325, allocations: 117 kB / 0.5599 GB, free: 4.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6325, allocations: 4.031 kB / 0.5599 GB, free: 4.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000376/0.6329, allocations: 59.94 kB / 0.5599 GB, free: 4.297 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 () * 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.001625/0.6346, allocations: 1.456 MB / 0.5614 GB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.6363, allocations: 1.588 MB / 0.5629 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.6363, allocations: 0 / 0.5629 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.6377, allocations: 1.37 MB / 0.5643 GB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.638, allocations: 15.44 kB / 0.5643 GB, free: 1.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/0.6411, allocations: 1.88 MB / 0.5661 GB, free: 15.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.6417, allocations: 0.7559 MB / 0.5668 GB, free: 15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.835e-05/0.6417, allocations: 42.36 kB / 0.5669 GB, free: 14.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/0.6418, allocations: 0 / 0.5669 GB, free: 14.98 MB / 378.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_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