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.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.783/1.783, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003446/0.0003449, allocations: 12 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1093, allocations: 44.5 MB / 308.6 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4686/0.578, allocations: 126.5 MB / 435.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003721/0.5784, allocations: 106.8 kB / 435.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.574/2.152, allocations: 353.2 MB / 0.7699 GB, free: 53.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.561e-06/2.152, allocations: 0 / 0.7699 GB, free: 53.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007655/2.153, allocations: 225 kB / 0.7701 GB, free: 53.51 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04574/2.199, allocations: 10.11 MB / 0.78 GB, free: 50.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/2.199, allocations: 7.25 kB / 0.78 GB, free: 50.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007664/2.207, allocations: 1.642 MB / 0.7816 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04024/2.247, allocations: 4.954 MB / 0.7865 GB, free: 49.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02588/2.273, allocations: 8.207 MB / 0.7945 GB, free: 46.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001141/2.274, allocations: 0.7178 MB / 0.7952 GB, free: 46.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004717/2.279, allocations: 0.9239 MB / 0.7961 GB, free: 45.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05188/2.331, allocations: 17.16 MB / 0.8128 GB, free: 33.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005094/2.331, allocations: 11.28 kB / 0.8128 GB, free: 33.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003994/2.335, allocations: 409 kB / 0.8132 GB, free: 33.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001021/2.336, allocations: 0.7137 MB / 0.8139 GB, free: 32.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04459/2.381, allocations: 15.83 MB / 0.8294 GB, free: 17.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4608/2.842, allocations: 55.38 MB / 0.8835 GB, free: 38.72 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0327/2.875, allocations: 19.31 MB / 0.9023 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06407/2.939, allocations: 24.88 MB / 0.9266 GB, free: 39.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.592e-05/2.939, allocations: 100.3 kB / 0.9267 GB, free: 39.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=749): time 1.129e-05/2.939, allocations: 0 / 0.9267 GB, free: 39.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=754): time 0.1765/3.115, allocations: 46.21 MB / 0.9718 GB, free: 17.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.065e-05/3.116, allocations: 120.9 kB / 0.972 GB, free: 17.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007081/3.123, allocations: 3.205 MB / 0.9751 GB, free: 16.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001684/3.124, allocations: 122.1 kB / 0.9752 GB, free: 16.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/3.127, allocations: 3.45 MB / 0.9786 GB, free: 13.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003997/3.131, allocations: 2.482 MB / 0.981 GB, free: 11.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/3.132, allocations: 125.3 kB / 0.9811 GB, free: 11.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007989/3.133, allocations: 0.6074 MB / 0.9817 GB, free: 11.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01358/3.147, allocations: 5.094 MB / 0.9867 GB, free: 9.301 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01657/3.163, allocations: 6.348 MB / 0.9929 GB, free: 3.957 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0215/3.185, allocations: 6.397 MB / 0.9991 GB, free: 15.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.58e-05/3.185, allocations: 8 kB / 0.9991 GB, free: 15.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.04422/3.229, allocations: 14.44 MB / 1.013 GB, free: 2.547 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.645e-05/3.229, allocations: 51.23 kB / 1.013 GB, free: 2.496 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.926e-05/3.229, allocations: 28 kB / 1.013 GB, free: 2.469 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.371/3.6, allocations: 4.085 MB / 1.017 GB, free: 84.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009982/3.61, allocations: 1.183 MB / 1.018 GB, free: 84.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02109/3.631, allocations: 12.59 MB / 1.031 GB, free: 80.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/3.642, allocations: 361.9 kB / 1.031 GB, free: 80.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00261/3.645, allocations: 283.2 kB / 1.031 GB, free: 80.02 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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 (637): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.01597/3.661, allocations: 3.875 MB / 1.035 GB, free: 79.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002908/3.664, allocations: 493 kB / 1.036 GB, free: 79.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.055/3.719, allocations: 14.33 MB / 1.05 GB, free: 79.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03529/3.754, allocations: 12.84 MB / 1.062 GB, free: 79.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/3.754, allocations: 5.562 kB / 1.062 GB, free: 79.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000156/3.754, allocations: 31.64 kB / 1.062 GB, free: 79.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07484/3.829, allocations: 28.21 MB / 1.09 GB, free: 68.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001123/3.829, allocations: 0 / 1.09 GB, free: 68.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008078/3.837, allocations: 0.8909 MB / 1.091 GB, free: 68.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01312/3.85, allocations: 3.956 MB / 1.094 GB, free: 67.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001827/3.852, allocations: 157.8 kB / 1.095 GB, free: 67.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01915/3.871, allocations: 12.47 MB / 1.107 GB, free: 59.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/3.871, allocations: 0.9375 kB / 1.107 GB, free: 59.64 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05254/3.924, allocations: 21.68 MB / 1.128 GB, free: 47.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005527/3.93, allocations: 1.734 MB / 1.13 GB, free: 45.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001872/3.931, allocations: 104 kB / 1.13 GB, free: 45.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005874/3.937, allocations: 308.8 kB / 1.13 GB, free: 45.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002145/3.94, allocations: 0.5522 MB / 1.131 GB, free: 45.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009369/3.941, allocations: 199.6 kB / 1.131 GB, free: 44.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005149/3.946, allocations: 2.442 MB / 1.133 GB, free: 42.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.02e-07/3.946, allocations: 0 / 1.133 GB, free: 42.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009743/3.955, allocations: 1.824 MB / 1.135 GB, free: 41.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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 (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.05503/4.011, allocations: 23.15 MB / 1.158 GB, free: 20.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03339/4.044, allocations: 12.5 MB / 1.17 GB, free: 9.824 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/4.044, allocations: 5.5 kB / 1.17 GB, free: 9.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01857/4.063, allocations: 6.482 MB / 1.176 GB, free: 4.203 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008286/4.071, allocations: 0.8969 MB / 1.177 GB, free: 3.508 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4014/4.472, allocations: 53.82 MB / 1.23 GB, free: 49.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01382/4.486, allocations: 6.651 MB / 1.236 GB, free: 48.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009851/4.496, allocations: 3.612 MB / 1.24 GB, free: 48.92 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/4.496, allocations: 0 / 1.24 GB, free: 48.92 MB / 458.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_InductionMachines_IMC_withLossesCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:559:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_InductionMachines_IMC_withLossesFunctions.cpp:559:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_InductionMachines_IMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFMU.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_InductionMachines_IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1