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_MTPA.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_MTPA,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004737/0.0004738, allocations: 12 kB / 264.1 MB, free: 13.45 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1253, allocations: 44.5 MB / 308.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4884/0.6138, allocations: 130.1 MB / 438.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000373/0.6142, allocations: 110.2 kB / 438.7 MB, free: 9.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.629/2.243, allocations: 332.9 MB / 0.7536 GB, free: 51.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.058e-06/2.243, allocations: 0 / 0.7536 GB, free: 51.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000739/2.244, allocations: 228.4 kB / 0.7538 GB, free: 51.39 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04329/2.287, allocations: 9.164 MB / 0.7627 GB, free: 48.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/2.288, allocations: 18 kB / 0.7627 GB, free: 48.35 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00653/2.294, allocations: 1.433 MB / 0.7641 GB, free: 48.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0478/2.342, allocations: 5.884 MB / 0.7699 GB, free: 47.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02815/2.37, allocations: 7.458 MB / 0.7772 GB, free: 46.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001545/2.372, allocations: 0.7219 MB / 0.7779 GB, free: 46.49 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005427/2.377, allocations: 0.9415 MB / 0.7788 GB, free: 46.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05298/2.43, allocations: 17.01 MB / 0.7954 GB, free: 40.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004979/2.431, allocations: 17.91 kB / 0.7954 GB, free: 40.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003928/2.435, allocations: 412.9 kB / 0.7958 GB, free: 40.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/2.436, allocations: 0.7138 MB / 0.7965 GB, free: 40.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06308/2.499, allocations: 15.9 MB / 0.812 GB, free: 28.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5557/3.055, allocations: 52.79 MB / 0.8636 GB, free: 30.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05072/3.105, allocations: 41.48 MB / 0.9041 GB, free: 30.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05967/3.165, allocations: 21.77 MB / 0.9254 GB, free: 29.35 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/3.165, allocations: 95.03 kB / 0.9254 GB, free: 29.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=693): time 1.254e-05/3.165, allocations: 3.375 kB / 0.9254 GB, free: 29.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=701): time 0.1616/3.327, allocations: 41.28 MB / 0.9658 GB, free: 17.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/3.327, allocations: 109 kB / 0.9659 GB, free: 17.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005421/3.332, allocations: 2.456 MB / 0.9683 GB, free: 16.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001569/3.334, allocations: 116 kB / 0.9684 GB, free: 16.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002489/3.337, allocations: 3.52 MB / 0.9718 GB, free: 13.68 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003705/3.34, allocations: 2.32 MB / 0.9741 GB, free: 11.88 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008286/3.341, allocations: 125.5 kB / 0.9742 GB, free: 11.78 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007434/3.342, allocations: 0.6127 MB / 0.9748 GB, free: 11.33 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01105/3.353, allocations: 4.523 MB / 0.9792 GB, free: 9.488 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01306/3.366, allocations: 6.323 MB / 0.9854 GB, free: 5.484 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01379/3.38, allocations: 5.606 MB / 0.9909 GB, free: 2.965 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.799e-05/3.38, allocations: 16.66 kB / 0.9909 GB, free: 2.965 MB / 458.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.04837/3.428, allocations: 13.92 MB / 1.004 GB, free: 14.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7e-05/3.428, allocations: 30.53 kB / 1.004 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/3.429, allocations: 55.91 kB / 1.005 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0149/3.444, allocations: 4.022 MB / 1.008 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01045/3.454, allocations: 1.225 MB / 1.01 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02339/3.477, allocations: 9.675 MB / 1.019 GB, free: 3.086 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008384/3.486, allocations: 349.9 kB / 1.019 GB, free: 2.812 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0026/3.489, allocations: 323.7 kB / 1.02 GB, free: 2.523 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (650): * Single equations (assignments): 598 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.3803/3.869, allocations: 3.663 MB / 1.023 GB, free: 93.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001869/3.871, allocations: 449.3 kB / 1.024 GB, free: 93.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04153/3.912, allocations: 13 MB / 1.036 GB, free: 93.51 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003185/3.913, allocations: 184.2 kB / 1.037 GB, free: 93.51 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.022e-05/3.913, allocations: 0 / 1.037 GB, free: 93.51 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001486/3.913, allocations: 28.27 kB / 1.037 GB, free: 93.51 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06678/3.98, allocations: 24.86 MB / 1.061 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.4e-05/3.98, allocations: 3.344 kB / 1.061 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007323/3.987, allocations: 0.8206 MB / 1.062 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01222/3.999, allocations: 3.918 MB / 1.066 GB, free: 92.62 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001659/4.001, allocations: 155.2 kB / 1.066 GB, free: 92.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01702/4.018, allocations: 9.55 MB / 1.075 GB, free: 90.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/4.018, allocations: 13.72 kB / 1.075 GB, free: 90.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05038/4.069, allocations: 19.7 MB / 1.094 GB, free: 81.15 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005271/4.074, allocations: 1.483 MB / 1.096 GB, free: 80.33 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002156/4.076, allocations: 107.5 kB / 1.096 GB, free: 80.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006162/4.082, allocations: 269.7 kB / 1.096 GB, free: 80.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002427/4.085, allocations: 0.5164 MB / 1.097 GB, free: 80.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001008/4.086, allocations: 193.5 kB / 1.097 GB, free: 80.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004217/4.09, allocations: 1.847 MB / 1.099 GB, free: 79.33 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.51e-07/4.09, allocations: 0 / 1.099 GB, free: 79.33 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01027/4.1, allocations: 1.728 MB / 1.1 GB, free: 79.13 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (443): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.05204/4.152, allocations: 21.59 MB / 1.121 GB, free: 68.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03081/4.183, allocations: 11.18 MB / 1.132 GB, free: 63.06 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/4.183, allocations: 0 / 1.132 GB, free: 63.06 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01711/4.2, allocations: 5.726 MB / 1.138 GB, free: 58.14 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008105/4.209, allocations: 0.8399 MB / 1.139 GB, free: 57.49 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4867/4.695, allocations: 94.24 MB / 1.231 GB, free: 66.36 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01299/4.708, allocations: 6.343 MB / 1.237 GB, free: 65.49 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009356/4.718, allocations: 3.43 MB / 1.24 GB, free: 65.48 MB / 474.7 MB Notification: Performance of SimCode: time 1.143e-06/4.718, allocations: 1.844 kB / 1.24 GB, free: 65.48 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_MTPACalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFunctions.cpp:476:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = 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_MTPAFunctions.cpp:476:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = 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_MTPACalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPAFMU.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_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPACalcHelperMain.o] Error 1