Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001648/0.001648, allocations: 187.6 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.88/1.88, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 93.8 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003759, allocations: 8 kB / 327.1 MB, free: 72 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3264, allocations: 47.57 MB / 374.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.8057, allocations: 130.8 MB / 0.4936 GB, free: 62.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003506/0.8061, allocations: 102.3 kB / 0.4937 GB, free: 62.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.745/2.551, allocations: 379.8 MB / 0.8647 GB, free: 43.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.597e-06/2.551, allocations: 2.188 kB / 0.8647 GB, free: 43.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000762/2.552, allocations: 244.3 kB / 0.8649 GB, free: 43.36 MB / 442.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.05142/2.604, allocations: 10.79 MB / 0.8755 GB, free: 40.01 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/2.604, allocations: 10.56 kB / 0.8755 GB, free: 40.01 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009046/2.613, allocations: 1.824 MB / 0.8773 GB, free: 39.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05344/2.666, allocations: 6.318 MB / 0.8834 GB, free: 39.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02937/2.696, allocations: 8.773 MB / 0.892 GB, free: 38.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001251/2.697, allocations: 0.7965 MB / 0.8928 GB, free: 38.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005512/2.702, allocations: 1.027 MB / 0.8938 GB, free: 38.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06191/2.764, allocations: 19.24 MB / 0.9126 GB, free: 35.92 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006558/2.765, allocations: 10.47 kB / 0.9126 GB, free: 35.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00506/2.77, allocations: 459.9 kB / 0.913 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001336/2.772, allocations: 0.8228 MB / 0.9138 GB, free: 35.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05455/2.826, allocations: 18.11 MB / 0.9315 GB, free: 27.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5258/3.352, allocations: 61.73 MB / 0.9918 GB, free: 45.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03845/3.391, allocations: 25.09 MB / 1.016 GB, free: 32.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07641/3.467, allocations: 26.53 MB / 1.042 GB, free: 32.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.776e-05/3.467, allocations: 112.2 kB / 1.042 GB, free: 32.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=834): time 1.227e-05/3.467, allocations: 0 / 1.042 GB, free: 32.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=840): time 0.1725/3.64, allocations: 48.53 MB / 1.09 GB, free: 21.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/3.64, allocations: 132.5 kB / 1.09 GB, free: 21.05 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005855/3.646, allocations: 2.698 MB / 1.092 GB, free: 20.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001902/3.648, allocations: 137.9 kB / 1.093 GB, free: 19.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/3.65, allocations: 3.716 MB / 1.096 GB, free: 17.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004525/3.655, allocations: 2.756 MB / 1.099 GB, free: 14.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001401/3.656, allocations: 145.1 kB / 1.099 GB, free: 14.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007991/3.657, allocations: 0.6449 MB / 1.1 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01486/3.672, allocations: 5.595 MB / 1.105 GB, free: 12.07 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01662/3.689, allocations: 7.063 MB / 1.112 GB, free: 8.137 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01759/3.706, allocations: 6.732 MB / 1.119 GB, free: 5.105 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.055e-05/3.706, allocations: 11.88 kB / 1.119 GB, free: 5.105 MB / 458.7 MB Notification: Performance of matching and sorting (n=1046) (initialization): time 0.07252/3.779, allocations: 17.52 MB / 1.136 GB, free: 13.44 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.243e-05/3.779, allocations: 20 kB / 1.136 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001281/3.779, allocations: 40 kB / 1.136 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01749/3.797, allocations: 5.027 MB / 1.141 GB, free: 9.238 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01153/3.808, allocations: 1.342 MB / 1.142 GB, free: 8.207 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02547/3.834, allocations: 12.37 MB / 1.154 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008772/3.843, allocations: 425.8 kB / 1.154 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002577/3.845, allocations: 322.1 kB / 1.155 GB, free: 12.37 MB / 490.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.01404/3.859, allocations: 4.13 MB / 1.159 GB, free: 8.922 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003148/3.862, allocations: 0.4957 MB / 1.159 GB, free: 8.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4247/4.287, allocations: 16.9 MB / 1.176 GB, free: 82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04143/4.329, allocations: 14.45 MB / 1.19 GB, free: 81.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/4.329, allocations: 0 / 1.19 GB, free: 81.73 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001714/4.329, allocations: 34.27 kB / 1.19 GB, free: 81.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08811/4.417, allocations: 30.87 MB / 1.22 GB, free: 80.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001239/4.417, allocations: 3.25 kB / 1.22 GB, free: 80.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009183/4.426, allocations: 1.025 MB / 1.221 GB, free: 80.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01555/4.442, allocations: 4.84 MB / 1.226 GB, free: 80.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002067/4.444, allocations: 175 kB / 1.226 GB, free: 80.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02073/4.465, allocations: 12.18 MB / 1.238 GB, free: 74.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/4.465, allocations: 0 / 1.238 GB, free: 74.81 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.061/4.526, allocations: 23.96 MB / 1.261 GB, free: 64.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00667/4.533, allocations: 1.806 MB / 1.263 GB, free: 63.67 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002917/4.536, allocations: 115.8 kB / 1.263 GB, free: 63.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007279/4.543, allocations: 370.6 kB / 1.264 GB, free: 63.49 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003097/4.546, allocations: 0.5991 MB / 1.264 GB, free: 63.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001739/4.548, allocations: 227.8 kB / 1.264 GB, free: 63.31 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004505/4.552, allocations: 2.045 MB / 1.266 GB, free: 62.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.42e-07/4.552, allocations: 0 / 1.266 GB, free: 62.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01165/4.564, allocations: 1.994 MB / 1.268 GB, free: 62.33 MB / 490.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.06622/4.63, allocations: 25.06 MB / 1.293 GB, free: 51.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03788/4.668, allocations: 13.63 MB / 1.306 GB, free: 39.81 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/4.668, allocations: 7.609 kB / 1.306 GB, free: 39.81 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02195/4.69, allocations: 7.099 MB / 1.313 GB, free: 33.73 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009889/4.7, allocations: 0.9688 MB / 1.314 GB, free: 32.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5346/5.235, allocations: 93.58 MB / 1.405 GB, free: 48.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0163/5.251, allocations: 7.165 MB / 1.412 GB, free: 47.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01104/5.262, allocations: 3.954 MB / 1.416 GB, free: 47.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.462e-06/5.262, allocations: 3.375 kB / 1.416 GB, free: 47.59 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_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_3_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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o] Error 1