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.IMS_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.IMS_Characteristics,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003433, allocations: 15.94 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09409, allocations: 44.52 MB / 308.6 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.5568, allocations: 125.9 MB / 434.5 MB, free: 13.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003723/0.5573, allocations: 108.6 kB / 434.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.68/2.237, allocations: 381.5 MB / 0.797 GB, free: 48.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.877e-06/2.237, allocations: 0 / 0.797 GB, free: 48.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001047/2.238, allocations: 244.2 kB / 0.7972 GB, free: 48.15 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: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.06421/2.302, allocations: 10.79 MB / 0.8077 GB, free: 40.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/2.302, allocations: 8.031 kB / 0.8077 GB, free: 40.56 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008481/2.311, allocations: 1.824 MB / 0.8095 GB, free: 38.74 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05213/2.363, allocations: 6.318 MB / 0.8157 GB, free: 32.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02839/2.391, allocations: 8.783 MB / 0.8243 GB, free: 23.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001229/2.393, allocations: 0.7993 MB / 0.8251 GB, free: 22.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005232/2.398, allocations: 1.029 MB / 0.8261 GB, free: 21.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06514/2.463, allocations: 19.24 MB / 0.8448 GB, free: 2.336 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006198/2.464, allocations: 15.81 kB / 0.8449 GB, free: 2.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005457/2.469, allocations: 457.1 kB / 0.8453 GB, free: 1.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001574/2.471, allocations: 0.8228 MB / 0.8461 GB, free: 1.066 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3848/2.856, allocations: 18.11 MB / 0.8638 GB, free: 43.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1486/3.004, allocations: 61.29 MB / 0.9236 GB, free: 29.22 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03735/3.042, allocations: 25.08 MB / 0.9481 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07435/3.116, allocations: 26.74 MB / 0.9742 GB, free: 0 / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/3.116, allocations: 109.4 kB / 0.9743 GB, free: 15.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=834): time 1.323e-05/3.116, allocations: 0 / 0.9743 GB, free: 15.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=840): time 0.5746/3.691, allocations: 49.84 MB / 1.023 GB, free: 71.88 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/3.691, allocations: 126.3 kB / 1.023 GB, free: 71.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007138/3.698, allocations: 2.703 MB / 1.026 GB, free: 71.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001842/3.7, allocations: 142.5 kB / 1.026 GB, free: 71.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002904/3.703, allocations: 3.708 MB / 1.03 GB, free: 70.82 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004748/3.708, allocations: 2.757 MB / 1.032 GB, free: 69.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/3.709, allocations: 142.7 kB / 1.032 GB, free: 69.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009811/3.71, allocations: 0.6443 MB / 1.033 GB, free: 68.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01569/3.726, allocations: 5.596 MB / 1.038 GB, free: 68.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01668/3.743, allocations: 7.061 MB / 1.045 GB, free: 67.22 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01709/3.76, allocations: 6.742 MB / 1.052 GB, free: 67.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.672e-05/3.76, allocations: 12.53 kB / 1.052 GB, free: 67.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=1046) (initialization): time 0.04574/3.806, allocations: 16.05 MB / 1.068 GB, free: 66.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/3.806, allocations: 26.69 kB / 1.068 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/3.806, allocations: 37 kB / 1.068 GB, free: 66.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01589/3.822, allocations: 5.023 MB / 1.073 GB, free: 66.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01077/3.833, allocations: 1.339 MB / 1.074 GB, free: 66.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02226/3.855, allocations: 12.37 MB / 1.086 GB, free: 63.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008337/3.864, allocations: 430.1 kB / 1.086 GB, free: 63.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002427/3.866, allocations: 318.5 kB / 1.087 GB, free: 63.36 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * 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 (706): * Single equations (assignments): 640 * 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: 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,18 115} Notification: Performance of prepare postOptimizeDAE: time 0.01289/3.879, allocations: 4.137 MB / 1.091 GB, free: 61.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002696/3.882, allocations: 0.4902 MB / 1.091 GB, free: 61.26 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04799/3.93, allocations: 16.05 MB / 1.107 GB, free: 54.35 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03882/3.969, allocations: 14.44 MB / 1.121 GB, free: 48.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.382e-05/3.969, allocations: 6.641 kB / 1.121 GB, free: 48.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001743/3.969, allocations: 36.47 kB / 1.121 GB, free: 48.22 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08113/4.05, allocations: 30.88 MB / 1.151 GB, free: 26.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.766e-05/4.05, allocations: 0 / 1.151 GB, free: 26.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008839/4.059, allocations: 1.019 MB / 1.152 GB, free: 26.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01521/4.074, allocations: 4.839 MB / 1.157 GB, free: 22.15 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002076/4.076, allocations: 179.9 kB / 1.157 GB, free: 22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02141/4.098, allocations: 12.18 MB / 1.169 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/4.098, allocations: 6.125 kB / 1.169 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4125/4.51, allocations: 24.22 MB / 1.193 GB, free: 82.08 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006425/4.517, allocations: 1.806 MB / 1.194 GB, free: 81.98 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002603/4.519, allocations: 120 kB / 1.195 GB, free: 81.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007113/4.526, allocations: 373.3 kB / 1.195 GB, free: 81.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003163/4.53, allocations: 0.6028 MB / 1.195 GB, free: 81.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001811/4.532, allocations: 221.6 kB / 1.196 GB, free: 81.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005299/4.537, allocations: 2.045 MB / 1.198 GB, free: 81.83 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/4.537, allocations: 1.5 kB / 1.198 GB, free: 81.83 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01139/4.548, allocations: 1.992 MB / 1.2 GB, free: 81.83 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * 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 (540): * Single equations (assignments): 474 * 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: 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,17 116} Notification: Performance of Backend phase and start with SimCode phase: time 0.06468/4.613, allocations: 25.07 MB / 1.224 GB, free: 80.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03787/4.651, allocations: 13.63 MB / 1.237 GB, free: 80.44 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/4.651, allocations: 3.938 kB / 1.237 GB, free: 80.44 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02078/4.672, allocations: 7.094 MB / 1.244 GB, free: 79.99 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008772/4.681, allocations: 0.9691 MB / 1.245 GB, free: 79.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1788/4.859, allocations: 93.57 MB / 1.337 GB, free: 12.69 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01742/4.877, allocations: 7.171 MB / 1.344 GB, free: 7.184 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01225/4.889, allocations: 3.949 MB / 1.348 GB, free: 3.512 MB / 474.7 MB Notification: Performance of SimCode: time 1.323e-06/4.889, allocations: 4 kB / 1.348 GB, free: 3.508 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_IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsFunctions.cpp:516:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp356 = 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_IMS_CharacteristicsFunctions.cpp:516:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp356 = 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_IMS_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_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_IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o] Error 1