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.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004748/0.0004749, allocations: 15.92 kB / 264.1 MB, free: 13.44 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09568, allocations: 44.51 MB / 308.6 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5179/0.6137, allocations: 161.2 MB / 469.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003759/0.6141, allocations: 105 kB / 469.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.808/2.422, allocations: 395.1 MB / 0.8447 GB, free: 5.652 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.226e-06/2.422, allocations: 4 kB / 0.8447 GB, free: 5.648 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001018/2.423, allocations: 267.7 kB / 0.845 GB, free: 5.387 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.7086/3.132, allocations: 10.99 MB / 0.8557 GB, free: 26.64 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/3.132, allocations: 9.156 kB / 0.8557 GB, free: 26.64 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009341/3.141, allocations: 1.794 MB / 0.8575 GB, free: 26.5 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03809/3.179, allocations: 4.41 MB / 0.8618 GB, free: 25.89 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03228/3.212, allocations: 8.897 MB / 0.8705 GB, free: 25.03 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001248/3.213, allocations: 0.8241 MB / 0.8713 GB, free: 25.01 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004987/3.218, allocations: 1.09 MB / 0.8724 GB, free: 25 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05532/3.273, allocations: 17.48 MB / 0.8894 GB, free: 23.67 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005583/3.274, allocations: 20.31 kB / 0.8894 GB, free: 23.67 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004013/3.278, allocations: 473.2 kB / 0.8899 GB, free: 23.67 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009837/3.279, allocations: 0.6918 MB / 0.8906 GB, free: 23.64 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04563/3.325, allocations: 15.31 MB / 0.9055 GB, free: 23.53 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1435/3.468, allocations: 58.16 MB / 0.9623 GB, free: 14.62 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03262/3.501, allocations: 17.23 MB / 0.9791 GB, free: 2.578 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07452/3.575, allocations: 19.07 MB / 0.9978 GB, free: 8.215 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001142/3.576, allocations: 90.98 kB / 0.9979 GB, free: 8.117 MB / 458.8 MB Notification: Performance of pre-optimization done (n=642): time 1.072e-05/3.576, allocations: 0 / 0.9979 GB, free: 8.117 MB / 458.8 MB Notification: Performance of matching and sorting (n=669): time 0.4696/4.045, allocations: 36.11 MB / 1.033 GB, free: 72.49 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/4.045, allocations: 139.4 kB / 1.033 GB, free: 72.39 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01061/4.056, allocations: 3.916 MB / 1.037 GB, free: 72.02 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00148/4.058, allocations: 118.4 kB / 1.037 GB, free: 71.99 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003762/4.061, allocations: 4.362 MB / 1.041 GB, free: 69.59 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003577/4.065, allocations: 2.232 MB / 1.044 GB, free: 68.15 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009446/4.066, allocations: 141.6 kB / 1.044 GB, free: 68.15 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006132/4.067, allocations: 0.6181 MB / 1.044 GB, free: 67.83 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01118/4.078, allocations: 4.427 MB / 1.049 GB, free: 67.81 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01324/4.091, allocations: 6.429 MB / 1.055 GB, free: 65.57 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01415/4.105, allocations: 5.532 MB / 1.06 GB, free: 65.47 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.306e-05/4.105, allocations: 24.89 kB / 1.06 GB, free: 65.47 MB / 474.8 MB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.03692/4.142, allocations: 12.99 MB / 1.073 GB, free: 64.92 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/4.142, allocations: 28.47 kB / 1.073 GB, free: 64.92 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/4.143, allocations: 61.16 kB / 1.073 GB, free: 64.92 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007958/4.15, allocations: 2.418 MB / 1.076 GB, free: 64.86 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/4.162, allocations: 1.535 MB / 1.077 GB, free: 64.86 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/4.177, allocations: 10.47 MB / 1.087 GB, free: 60.07 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/4.188, allocations: 488.3 kB / 1.088 GB, free: 60.05 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001887/4.19, allocations: 334.8 kB / 1.088 GB, free: 60.05 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * 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 (799): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.01159/4.201, allocations: 3.784 MB / 1.092 GB, free: 59.89 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00255/4.204, allocations: 0.551 MB / 1.092 GB, free: 59.6 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03554/4.239, allocations: 11.78 MB / 1.104 GB, free: 58 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02284/4.262, allocations: 8.469 MB / 1.112 GB, free: 54.34 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.478e-05/4.262, allocations: 9.219 kB / 1.112 GB, free: 54.34 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001635/4.262, allocations: 31.12 kB / 1.112 GB, free: 54.34 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06718/4.33, allocations: 24.45 MB / 1.136 GB, free: 43.52 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.007e-05/4.33, allocations: 7.062 kB / 1.136 GB, free: 43.52 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008105/4.338, allocations: 0.9146 MB / 1.137 GB, free: 43.5 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008296/4.346, allocations: 2.435 MB / 1.139 GB, free: 42.73 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001678/4.348, allocations: 153 kB / 1.139 GB, free: 42.65 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01953/4.367, allocations: 14.2 MB / 1.153 GB, free: 31.93 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/4.367, allocations: 6.25 kB / 1.153 GB, free: 31.93 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04592/4.413, allocations: 18.37 MB / 1.171 GB, free: 18.32 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005996/4.419, allocations: 1.566 MB / 1.173 GB, free: 16.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00267/4.422, allocations: 107.9 kB / 1.173 GB, free: 16.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007583/4.43, allocations: 314.7 kB / 1.173 GB, free: 16.57 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002559/4.432, allocations: 0.4957 MB / 1.174 GB, free: 16.25 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009125/4.433, allocations: 183.1 kB / 1.174 GB, free: 16.09 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007518/4.441, allocations: 2.92 MB / 1.177 GB, free: 13.66 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.42e-07/4.441, allocations: 0 / 1.177 GB, free: 13.66 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01276/4.454, allocations: 2.002 MB / 1.179 GB, free: 11.67 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (481): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.414/4.868, allocations: 20.93 MB / 1.199 GB, free: 67.07 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02914/4.897, allocations: 11.01 MB / 1.21 GB, free: 66.49 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/4.897, allocations: 0 / 1.21 GB, free: 66.49 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01533/4.912, allocations: 5.834 MB / 1.215 GB, free: 65.91 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00928/4.922, allocations: 1.071 MB / 1.217 GB, free: 65.89 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.179/5.101, allocations: 107.2 MB / 1.321 GB, free: 16.56 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01798/5.119, allocations: 6.786 MB / 1.328 GB, free: 15.41 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01479/5.133, allocations: 4.148 MB / 1.332 GB, free: 11.95 MB / 490.8 MB Notification: Performance of SimCode: time 1.482e-06/5.134, allocations: 0 / 1.332 GB, free: 11.95 MB / 490.8 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_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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_SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorFMU.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_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1