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.SMR_CurrentSource.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.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.000364, allocations: 12 kB / 264.1 MB, free: 13.45 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.09967, allocations: 44.5 MB / 308.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5044/0.6041, allocations: 150.2 MB / 458.8 MB, free: 5.379 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003853/0.6045, allocations: 106.6 kB / 458.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.769/2.373, allocations: 386.1 MB / 0.8252 GB, free: 23.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.158e-06/2.374, allocations: 0 / 0.8252 GB, free: 23.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001303/2.375, allocations: 303.6 kB / 0.8255 GB, free: 23.23 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.07342/2.448, allocations: 11.69 MB / 0.8369 GB, free: 11.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.157e-05/2.448, allocations: 12.03 kB / 0.8369 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01105/2.459, allocations: 1.793 MB / 0.8386 GB, free: 9.613 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08609/2.546, allocations: 6.387 MB / 0.8449 GB, free: 3.203 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3786/2.924, allocations: 9.458 MB / 0.8541 GB, free: 27.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001667/2.926, allocations: 0.9222 MB / 0.855 GB, free: 27.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006657/2.933, allocations: 1.206 MB / 0.8562 GB, free: 27.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06894/3.002, allocations: 20.52 MB / 0.8762 GB, free: 26.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006881/3.002, allocations: 25.78 kB / 0.8763 GB, free: 26.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004954/3.007, allocations: 0.5179 MB / 0.8768 GB, free: 26.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001262/3.009, allocations: 0.8366 MB / 0.8776 GB, free: 26.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05476/3.063, allocations: 18.66 MB / 0.8958 GB, free: 26.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1591/3.223, allocations: 63.99 MB / 0.9583 GB, free: 15.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06289/3.286, allocations: 45.83 MB / 1.003 GB, free: 7.441 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4302/3.716, allocations: 24.38 MB / 1.027 GB, free: 73.24 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/3.716, allocations: 102.7 kB / 1.027 GB, free: 73.19 MB / 474.7 MB Notification: Performance of pre-optimization done (n=770): time 1.234e-05/3.716, allocations: 0.8125 kB / 1.027 GB, free: 73.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=810): time 0.1844/3.9, allocations: 46.2 MB / 1.072 GB, free: 65.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/3.9, allocations: 122 kB / 1.072 GB, free: 65.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008377/3.909, allocations: 3.587 MB / 1.076 GB, free: 65.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001745/3.911, allocations: 134 kB / 1.076 GB, free: 65.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003448/3.914, allocations: 4.695 MB / 1.08 GB, free: 62.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004276/3.918, allocations: 2.696 MB / 1.083 GB, free: 60.87 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/3.92, allocations: 158.8 kB / 1.083 GB, free: 60.87 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008267/3.921, allocations: 0.6684 MB / 1.084 GB, free: 60.54 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01374/3.934, allocations: 5.122 MB / 1.089 GB, free: 60.51 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01594/3.95, allocations: 7.507 MB / 1.096 GB, free: 57.73 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01659/3.967, allocations: 6.44 MB / 1.102 GB, free: 57.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/3.967, allocations: 21.84 kB / 1.102 GB, free: 57.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04454/4.012, allocations: 15.44 MB / 1.118 GB, free: 51.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/4.012, allocations: 37.31 kB / 1.118 GB, free: 51.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000234/4.012, allocations: 70.62 kB / 1.118 GB, free: 51.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01851/4.031, allocations: 4.149 MB / 1.122 GB, free: 49.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01667/4.047, allocations: 1.636 MB / 1.123 GB, free: 49.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02726/4.075, allocations: 12.22 MB / 1.135 GB, free: 41.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01316/4.088, allocations: 441.6 kB / 1.136 GB, free: 41.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002788/4.091, allocations: 386 kB / 1.136 GB, free: 41.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (853): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01664/4.107, allocations: 4.396 MB / 1.14 GB, free: 39.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003193/4.111, allocations: 0.5806 MB / 1.141 GB, free: 39.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04339/4.154, allocations: 14.48 MB / 1.155 GB, free: 28.74 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003126/4.154, allocations: 195.1 kB / 1.155 GB, free: 28.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/4.154, allocations: 4 kB / 1.155 GB, free: 28.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001775/4.155, allocations: 34.12 kB / 1.155 GB, free: 28.57 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07827/4.233, allocations: 28.7 MB / 1.183 GB, free: 4.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-05/4.233, allocations: 4 kB / 1.183 GB, free: 4.566 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01225/4.245, allocations: 1.397 MB / 1.185 GB, free: 4.484 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3685/4.614, allocations: 4.023 MB / 1.189 GB, free: 70.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002048/4.616, allocations: 167.9 kB / 1.189 GB, free: 70.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02066/4.637, allocations: 12.07 MB / 1.201 GB, free: 65.53 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/4.637, allocations: 7.125 kB / 1.201 GB, free: 65.53 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05791/4.695, allocations: 21.82 MB / 1.222 GB, free: 64.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006319/4.701, allocations: 1.75 MB / 1.224 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002948/4.704, allocations: 117.4 kB / 1.224 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007739/4.712, allocations: 323.1 kB / 1.224 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002784/4.714, allocations: 0.5788 MB / 1.225 GB, free: 64.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001349/4.716, allocations: 214.9 kB / 1.225 GB, free: 64.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006588/4.722, allocations: 2.683 MB / 1.227 GB, free: 64.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.02e-07/4.723, allocations: 3.375 kB / 1.227 GB, free: 64.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01282/4.735, allocations: 2.147 MB / 1.229 GB, free: 64.12 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (546): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * 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.05954/4.795, allocations: 23.54 MB / 1.252 GB, free: 61.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03523/4.83, allocations: 13.07 MB / 1.265 GB, free: 57.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/4.83, allocations: 1.219 kB / 1.265 GB, free: 57.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01958/4.85, allocations: 6.767 MB / 1.272 GB, free: 54.48 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01102/4.861, allocations: 1.174 MB / 1.273 GB, free: 54.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5816/5.443, allocations: 124.2 MB / 1.394 GB, free: 79.99 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01803/5.461, allocations: 7.734 MB / 1.402 GB, free: 79.05 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01256/5.473, allocations: 4.592 MB / 1.406 GB, free: 79.05 MB / 490.7 MB Notification: Performance of SimCode: time 1.754e-06/5.473, allocations: 0 / 1.406 GB, free: 79.05 MB / 490.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_SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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_SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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_SMR_CurrentSourceCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceFMU.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_SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSourceCalcHelperMain.o] Error 1