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_Characteristics.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_Characteristics,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000342/0.0003421, allocations: 8 kB / 264.1 MB, free: 13.45 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.08929, allocations: 44.52 MB / 308.6 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4487/0.538, allocations: 121.3 MB / 429.9 MB, free: 2.246 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003535/0.5384, allocations: 108 kB / 430 MB, free: 2.188 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.561/2.1, allocations: 339.8 MB / 0.7517 GB, free: 53.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.815e-06/2.1, allocations: 0 / 0.7517 GB, free: 53.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006325/2.101, allocations: 209.9 kB / 0.7519 GB, free: 53.36 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: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04268/2.143, allocations: 9.487 MB / 0.7612 GB, free: 50.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/2.143, allocations: 10.88 kB / 0.7612 GB, free: 50.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00716/2.151, allocations: 1.588 MB / 0.7628 GB, free: 50.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03995/2.19, allocations: 4.901 MB / 0.7676 GB, free: 49.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0238/2.214, allocations: 7.894 MB / 0.7753 GB, free: 48.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/2.215, allocations: 0.6921 MB / 0.7759 GB, free: 48.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004366/2.22, allocations: 0.8959 MB / 0.7768 GB, free: 48.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04928/2.269, allocations: 16.71 MB / 0.7931 GB, free: 41.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004102/2.27, allocations: 17.41 kB / 0.7932 GB, free: 41.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003546/2.273, allocations: 397.4 kB / 0.7935 GB, free: 41.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009484/2.274, allocations: 0.6923 MB / 0.7942 GB, free: 41.51 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04333/2.317, allocations: 15.44 MB / 0.8093 GB, free: 31.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.458/2.775, allocations: 53.87 MB / 0.8619 GB, free: 32.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03244/2.808, allocations: 18.85 MB / 0.8803 GB, free: 40 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05511/2.863, allocations: 22.7 MB / 0.9025 GB, free: 39.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.721e-05/2.863, allocations: 94.62 kB / 0.9026 GB, free: 39.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=686): time 1.114e-05/2.863, allocations: 2.844 kB / 0.9026 GB, free: 39.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=692): time 0.1252/2.988, allocations: 39.99 MB / 0.9416 GB, free: 25.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/2.989, allocations: 108.7 kB / 0.9417 GB, free: 25.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005446/2.994, allocations: 2.465 MB / 0.9441 GB, free: 24.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001508/2.996, allocations: 116.5 kB / 0.9442 GB, free: 24.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00229/2.998, allocations: 3.312 MB / 0.9475 GB, free: 21.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003628/3.002, allocations: 2.271 MB / 0.9497 GB, free: 19.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/3.003, allocations: 118 kB / 0.9498 GB, free: 19.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007456/3.003, allocations: 0.5893 MB / 0.9504 GB, free: 19.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0119/3.015, allocations: 4.733 MB / 0.955 GB, free: 17.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/3.029, allocations: 6.054 MB / 0.9609 GB, free: 13.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/3.043, allocations: 5.716 MB / 0.9665 GB, free: 11.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.915e-05/3.043, allocations: 11.56 kB / 0.9665 GB, free: 11.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.0376/3.08, allocations: 13.51 MB / 0.9797 GB, free: 5.648 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.807e-05/3.081, allocations: 20.91 kB / 0.9797 GB, free: 5.648 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/3.081, allocations: 38.44 kB / 0.9798 GB, free: 5.645 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01293/3.094, allocations: 3.862 MB / 0.9835 GB, free: 4.469 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008736/3.102, allocations: 1.126 MB / 0.9846 GB, free: 4.434 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0201/3.123, allocations: 10.7 MB / 0.9951 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007257/3.13, allocations: 351.8 kB / 0.9954 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00198/3.132, allocations: 273.6 kB / 0.9957 GB, free: 11.26 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * 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 (603): * Single equations (assignments): 535 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01165/3.144, allocations: 3.695 MB / 0.9993 GB, free: 8.156 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002104/3.146, allocations: 429.7 kB / 0.9997 GB, free: 7.734 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3789/3.525, allocations: 13.85 MB / 1.013 GB, free: 77.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03436/3.559, allocations: 11.9 MB / 1.025 GB, free: 77.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.909e-05/3.559, allocations: 0 / 1.025 GB, free: 77.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001496/3.559, allocations: 28.89 kB / 1.025 GB, free: 77.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06804/3.627, allocations: 26.43 MB / 1.051 GB, free: 76.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.453e-05/3.627, allocations: 5.062 kB / 1.051 GB, free: 76.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007116/3.634, allocations: 0.8146 MB / 1.051 GB, free: 76.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01208/3.647, allocations: 3.781 MB / 1.055 GB, free: 76.08 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001591/3.648, allocations: 144.8 kB / 1.055 GB, free: 76.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01697/3.665, allocations: 10.58 MB / 1.066 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/3.665, allocations: 0 / 1.066 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05059/3.716, allocations: 20 MB / 1.085 GB, free: 62.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004979/3.721, allocations: 1.543 MB / 1.087 GB, free: 61.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001899/3.723, allocations: 96.69 kB / 1.087 GB, free: 61.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005714/3.729, allocations: 284.8 kB / 1.087 GB, free: 61.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002186/3.731, allocations: 0.5034 MB / 1.088 GB, free: 61.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001034/3.732, allocations: 186.5 kB / 1.088 GB, free: 61.63 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004097/3.736, allocations: 1.863 MB / 1.09 GB, free: 60.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.01e-07/3.736, allocations: 0 / 1.09 GB, free: 60.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009627/3.746, allocations: 1.685 MB / 1.091 GB, free: 60.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.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 (438): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.05218/3.798, allocations: 21.03 MB / 1.112 GB, free: 51.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03039/3.828, allocations: 11.54 MB / 1.123 GB, free: 46.53 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/3.828, allocations: 3.844 kB / 1.123 GB, free: 46.53 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01682/3.845, allocations: 5.947 MB / 1.129 GB, free: 41.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007699/3.853, allocations: 0.8376 MB / 1.13 GB, free: 40.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4819/4.335, allocations: 82.02 MB / 1.21 GB, free: 89.89 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01257/4.347, allocations: 6.336 MB / 1.216 GB, free: 89.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009095/4.357, allocations: 3.315 MB / 1.219 GB, free: 89.02 MB / 474.7 MB Notification: Performance of SimCode: time 1.443e-06/4.357, allocations: 0 / 1.219 GB, free: 89.02 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_InductionMachines_IMC_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = 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_CharacteristicsFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = 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_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFMU.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_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o] Error 1