Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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_matrixEqCirc2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.002163/0.002163, allocations: 185.7 kB / 8.011 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.153/2.153, allocations: 205.3 MB / 213.7 MB, free: 1.676 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.00109/0.00109, allocations: 86.7 kB / 261.8 MB, free: 1.621 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2582/0.2582, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.644e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.104, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4706/0.5747, allocations: 86.29 MB / 0.5396 GB, free: 11.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.575, allocations: 83.62 kB / 0.5397 GB, free: 11.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006923/0.5819, allocations: 1.654 MB / 0.5413 GB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.582, allocations: 3.938 kB / 0.5413 GB, free: 10.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.582, allocations: 7.719 kB / 0.5413 GB, free: 10.67 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000314/0.5823, allocations: 421.3 kB / 0.5417 GB, free: 10.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.5824, allocations: 7.375 kB / 0.5417 GB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.5824, allocations: 7.719 kB / 0.5417 GB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/0.5826, allocations: 189.8 kB / 0.5419 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.5826, allocations: 0 / 0.5419 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.5827, allocations: 6.172 kB / 0.5419 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001179/0.5828, allocations: 54.91 kB / 0.542 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.5829, allocations: 88.94 kB / 0.5421 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.583, allocations: 7.938 kB / 0.5421 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.583, allocations: 2.578 kB / 0.5421 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.583, allocations: 0 / 0.5421 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.5831, allocations: 155.7 kB / 0.5422 GB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001186/0.5833, allocations: 96.62 kB / 0.5423 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.67e-05/0.5834, allocations: 85.61 kB / 0.5424 GB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.268e-06/0.5834, allocations: 0 / 0.5424 GB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.5834, allocations: 40.98 kB / 0.5424 GB, free: 9.762 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.5834, allocations: 0 / 0.5424 GB, free: 9.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003771/0.5838, allocations: 181.8 kB / 0.5426 GB, free: 9.719 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.5839, allocations: 99.31 kB / 0.5427 GB, free: 9.625 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.584, allocations: 121.2 kB / 0.5428 GB, free: 9.527 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.584, allocations: 25.7 kB / 0.5428 GB, free: 9.496 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.868e-05/0.5841, allocations: 154.9 kB / 0.543 GB, free: 9.348 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.284e-05/0.5842, allocations: 78.66 kB / 0.5431 GB, free: 9.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-06/0.5842, allocations: 0 / 0.5431 GB, free: 9.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.972e-05/0.5842, allocations: 325.4 kB / 0.5434 GB, free: 8.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.787e-05/0.5843, allocations: 51.95 kB / 0.5434 GB, free: 8.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.489e-05/0.5844, allocations: 57.14 kB / 0.5435 GB, free: 8.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.5846, allocations: 81.23 kB / 0.5435 GB, free: 8.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5846, allocations: 0 / 0.5435 GB, free: 8.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002962/0.5849, allocations: 185 kB / 0.5437 GB, free: 8.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.373e-05/0.585, allocations: 62.25 kB / 0.5438 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.585, allocations: 3.141 kB / 0.5438 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.585, allocations: 0 / 0.5438 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.5851, allocations: 7.438 kB / 0.5438 GB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.5851, allocations: 0 / 0.5438 GB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.397e-05/0.5851, allocations: 11.59 kB / 0.5438 GB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.5852, allocations: 7.688 kB / 0.5438 GB, free: 8.891 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.0001262/0.5853, allocations: 169.7 kB / 0.544 GB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005401/0.5859, allocations: 327 kB / 0.5443 GB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.5859, allocations: 15.5 kB / 0.5443 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.586, allocations: 7.422 kB / 0.5443 GB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.586, allocations: 3.844 kB / 0.5443 GB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.586, allocations: 4.031 kB / 0.5443 GB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.586, allocations: 0 / 0.5443 GB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.5861, allocations: 170.6 kB / 0.5445 GB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5862, allocations: 7.797 kB / 0.5445 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.362e-06/0.5862, allocations: 0 / 0.5445 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.5862, allocations: 3.984 kB / 0.5445 GB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.5862, allocations: 7.781 kB / 0.5445 GB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.5862, allocations: 0 / 0.5445 GB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5862, allocations: 0 / 0.5445 GB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005655/0.5868, allocations: 355.8 kB / 0.5448 GB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.705e-05/0.5869, allocations: 96.66 kB / 0.5449 GB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.5869, allocations: 3.844 kB / 0.5449 GB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.78e-05/0.587, allocations: 3.844 kB / 0.5449 GB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.42e-05/0.587, allocations: 7.219 kB / 0.5449 GB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.587, allocations: 7.531 kB / 0.5449 GB, free: 8.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.011e-05/0.5871, allocations: 99.22 kB / 0.545 GB, free: 8.258 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.5871, allocations: 0 / 0.545 GB, free: 8.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003407/0.5875, allocations: 38.47 kB / 0.5451 GB, free: 8.258 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.000898/0.5884, allocations: 0.9161 MB / 0.546 GB, free: 7.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007441/0.5891, allocations: 0.6895 MB / 0.5466 GB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5892, allocations: 0 / 0.5466 GB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005015/0.5897, allocations: 0.5612 MB / 0.5472 GB, free: 7.508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.59, allocations: 14.61 kB / 0.5472 GB, free: 7.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008165/0.5908, allocations: 412.8 kB / 0.5476 GB, free: 7.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.591, allocations: 0.7273 MB / 0.5483 GB, free: 6.645 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.591, allocations: 28.31 kB / 0.5483 GB, free: 6.637 MB / 362.7 MB Notification: Performance of SimCode: time 2.104e-06/0.5911, allocations: 0 / 0.5483 GB, free: 6.637 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_Z_matrixEqCirc2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.cpp:28: ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2Functions.cpp:37:3: error: unknown type name 'diagonalRetType' diagonalRetType /* undefined */ tmp7; ^ In file included from OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.cpp:35: In file included from ./OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2FMU.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 1 error generated. : recipe for target 'OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.o' failed make: *** [OMCppPowerSystems_cpp_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2CalcHelperMain.o] Error 1