Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 12 kB / 264.1 MB, free: 13.44 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09092/0.0913, allocations: 44.5 MB / 308.6 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.505/0.5964, allocations: 142.9 MB / 451.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003898/0.5968, allocations: 105.3 kB / 451.5 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9887/1.586, allocations: 232.8 MB / 0.6683 GB, free: 16.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.586, allocations: 0 / 0.6683 GB, free: 16.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000548/1.586, allocations: 159.8 kB / 0.6684 GB, free: 16.11 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.04367/1.63, allocations: 7.274 MB / 0.6756 GB, free: 8.742 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/1.63, allocations: 8.031 kB / 0.6756 GB, free: 8.734 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006854/1.637, allocations: 1.152 MB / 0.6767 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04173/1.679, allocations: 3.686 MB / 0.6803 GB, free: 3.871 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3218/2, allocations: 5.951 MB / 0.6861 GB, free: 34.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007899/2.001, allocations: 0.5276 MB / 0.6866 GB, free: 34.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00355/2.005, allocations: 0.6936 MB / 0.6873 GB, free: 34.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03717/2.042, allocations: 11.45 MB / 0.6985 GB, free: 33.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003846/2.042, allocations: 19.61 kB / 0.6985 GB, free: 33.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002168/2.045, allocations: 298 kB / 0.6988 GB, free: 33.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008229/2.045, allocations: 495.5 kB / 0.6992 GB, free: 33.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03217/2.078, allocations: 10.66 MB / 0.7097 GB, free: 33.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08683/2.164, allocations: 38.33 MB / 0.7471 GB, free: 23.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02296/2.187, allocations: 18.46 MB / 0.7651 GB, free: 24.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03313/2.221, allocations: 13.71 MB / 0.7785 GB, free: 17.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.31e-05/2.221, allocations: 76.48 kB / 0.7786 GB, free: 17.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=404): time 8.826e-06/2.221, allocations: 0 / 0.7786 GB, free: 17.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=420): time 0.08033/2.301, allocations: 22.48 MB / 0.8005 GB, free: 7.195 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002978/2.304, allocations: 1.973 MB / 0.8025 GB, free: 5.449 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007341/2.312, allocations: 2.962 MB / 0.8053 GB, free: 4.309 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001011/2.313, allocations: 86.48 kB / 0.8054 GB, free: 4.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003125/2.316, allocations: 3.012 MB / 0.8084 GB, free: 1.852 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00266/2.318, allocations: 1.422 MB / 0.8098 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000679/2.319, allocations: 102.2 kB / 0.8099 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005345/2.32, allocations: 0.5321 MB / 0.8104 GB, free: 276 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01176/2.331, allocations: 3.134 MB / 0.8134 GB, free: 0 / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01047/2.342, allocations: 4.893 MB / 0.8182 GB, free: 12.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/2.352, allocations: 3.797 MB / 0.8219 GB, free: 10.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.675e-05/2.352, allocations: 21.77 kB / 0.8219 GB, free: 10.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02772/2.38, allocations: 9.237 MB / 0.831 GB, free: 4.164 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.173e-05/2.38, allocations: 32.62 kB / 0.831 GB, free: 4.133 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000166/2.38, allocations: 70.72 kB / 0.8311 GB, free: 4.066 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009007/2.389, allocations: 2.492 MB / 0.8335 GB, free: 2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007765/2.397, allocations: 1.058 MB / 0.8345 GB, free: 1.172 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/2.412, allocations: 5.566 MB / 0.84 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006493/2.418, allocations: 323.8 kB / 0.8403 GB, free: 12.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00153/2.42, allocations: 274.4 kB / 0.8405 GB, free: 12.19 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (564): * Single equations (assignments): 542 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.008129/2.428, allocations: 2.5 MB / 0.843 GB, free: 10.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001566/2.429, allocations: 410.7 kB / 0.8434 GB, free: 9.672 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02435/2.454, allocations: 7.922 MB / 0.8511 GB, free: 2.895 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001408/2.454, allocations: 91.08 kB / 0.8512 GB, free: 2.812 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/2.454, allocations: 0 / 0.8512 GB, free: 2.812 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.78e-05/2.454, allocations: 21.38 kB / 0.8512 GB, free: 2.812 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4037/2.858, allocations: 19.79 MB / 0.8705 GB, free: 75.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.55e-05/2.858, allocations: 13.86 kB / 0.8706 GB, free: 75.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005233/2.863, allocations: 0.5357 MB / 0.8711 GB, free: 75.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008505/2.872, allocations: 2.449 MB / 0.8735 GB, free: 75.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008555/2.873, allocations: 99.84 kB / 0.8736 GB, free: 75.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/2.885, allocations: 7.182 MB / 0.8806 GB, free: 73.25 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002533/2.887, allocations: 1.911 MB / 0.8824 GB, free: 71.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02839/2.916, allocations: 12.41 MB / 0.8946 GB, free: 70.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003587/2.919, allocations: 1.09 MB / 0.8956 GB, free: 70.44 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001212/2.921, allocations: 73.45 kB / 0.8957 GB, free: 70.44 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003823/2.925, allocations: 203.8 kB / 0.8959 GB, free: 70.44 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009686/2.925, allocations: 323.3 kB / 0.8962 GB, free: 70.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004176/2.926, allocations: 125.7 kB / 0.8963 GB, free: 70.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004834/2.931, allocations: 2.187 MB / 0.8985 GB, free: 70.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.32e-07/2.931, allocations: 0 / 0.8985 GB, free: 70.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008052/2.939, allocations: 1.378 MB / 0.8998 GB, free: 70.29 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * 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 (286): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.02889/2.968, allocations: 14.87 MB / 0.9143 GB, free: 67.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01835/2.986, allocations: 7.342 MB / 0.9215 GB, free: 66.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/2.986, allocations: 2.469 kB / 0.9215 GB, free: 66.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01039/2.997, allocations: 3.652 MB / 0.9251 GB, free: 64.69 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006919/3.004, allocations: 0.8943 MB / 0.9259 GB, free: 64.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.137/3.141, allocations: 88.8 MB / 1.013 GB, free: 9.562 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01226/3.153, allocations: 4.557 MB / 1.017 GB, free: 7.855 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01002/3.163, allocations: 2.584 MB / 1.02 GB, free: 5.742 MB / 474.7 MB Notification: Performance of SimCode: time 3.075e-06/3.163, allocations: 0 / 1.02 GB, free: 5.742 MB / 474.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitFMU.cpp:11: /var/lib/jenkins/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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuitCalcHelperMain.o] Error 1