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.IMC_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.IMC_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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.001423/0.001427, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.865/1.865, 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.001098/0.001098, allocations: 84.77 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003768, allocations: 8 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3115, allocations: 47.57 MB / 374.7 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.197/0.5085, allocations: 126.3 MB / 0.4892 GB, free: 2.293 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003758/0.5089, allocations: 103.9 kB / 0.4893 GB, free: 2.191 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.857/2.366, allocations: 338.3 MB / 0.8197 GB, free: 47.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.306e-06/2.366, allocations: 0 / 0.8197 GB, free: 47.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006303/2.367, allocations: 210.7 kB / 0.8199 GB, free: 47.22 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: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04374/2.411, allocations: 9.494 MB / 0.8292 GB, free: 44.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/2.411, allocations: 7.562 kB / 0.8292 GB, free: 44.33 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007466/2.418, allocations: 1.585 MB / 0.8307 GB, free: 44.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04183/2.46, allocations: 4.886 MB / 0.8355 GB, free: 43.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02618/2.486, allocations: 7.902 MB / 0.8432 GB, free: 42.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001058/2.487, allocations: 0.6937 MB / 0.8439 GB, free: 42.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004281/2.492, allocations: 0.8991 MB / 0.8448 GB, free: 42.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04992/2.542, allocations: 16.71 MB / 0.8611 GB, free: 41.62 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005003/2.542, allocations: 7.281 kB / 0.8611 GB, free: 41.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003764/2.546, allocations: 397.2 kB / 0.8615 GB, free: 41.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001033/2.547, allocations: 0.6974 MB / 0.8622 GB, free: 41.59 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04332/2.59, allocations: 15.44 MB / 0.8772 GB, free: 41.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1282/2.718, allocations: 53.87 MB / 0.9298 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03565/2.754, allocations: 18.86 MB / 0.9483 GB, free: 14.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0693/2.824, allocations: 22.82 MB / 0.9705 GB, free: 11.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/2.824, allocations: 90.97 kB / 0.9706 GB, free: 11.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=686): time 1.241e-05/2.824, allocations: 0 / 0.9706 GB, free: 11.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=692): time 0.4593/3.283, allocations: 39.99 MB / 1.01 GB, free: 68.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.647e-05/3.283, allocations: 107.1 kB / 1.01 GB, free: 68.38 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005298/3.289, allocations: 2.461 MB / 1.012 GB, free: 68.14 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001528/3.29, allocations: 116.7 kB / 1.012 GB, free: 68.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002385/3.292, allocations: 3.311 MB / 1.016 GB, free: 66.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003785/3.296, allocations: 2.28 MB / 1.018 GB, free: 64.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/3.297, allocations: 120 kB / 1.018 GB, free: 64.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000705/3.298, allocations: 0.5906 MB / 1.018 GB, free: 64.65 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01328/3.312, allocations: 4.732 MB / 1.023 GB, free: 64.64 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01389/3.325, allocations: 6.062 MB / 1.029 GB, free: 63.29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01434/3.34, allocations: 5.713 MB / 1.035 GB, free: 63.21 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.837e-05/3.34, allocations: 10.84 kB / 1.035 GB, free: 63.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=885) (initialization): time 0.03647/3.376, allocations: 13.5 MB / 1.048 GB, free: 62.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.877e-05/3.377, allocations: 19.03 kB / 1.048 GB, free: 62.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/3.377, allocations: 43.94 kB / 1.048 GB, free: 62.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01228/3.389, allocations: 3.886 MB / 1.052 GB, free: 62.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008839/3.398, allocations: 1.12 MB / 1.053 GB, free: 62.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01728/3.415, allocations: 10.69 MB / 1.063 GB, free: 56.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006964/3.422, allocations: 347.9 kB / 1.063 GB, free: 56.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001809/3.424, allocations: 284.9 kB / 1.064 GB, free: 56.44 MB / 474.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.01036/3.434, allocations: 3.69 MB / 1.067 GB, free: 54.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/3.436, allocations: 433 kB / 1.068 GB, free: 54.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03762/3.474, allocations: 13.26 MB / 1.081 GB, free: 48.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03265/3.507, allocations: 11.88 MB / 1.092 GB, free: 43.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.137e-05/3.507, allocations: 0 / 1.092 GB, free: 43.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001223/3.507, allocations: 28.69 kB / 1.092 GB, free: 43.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06625/3.573, allocations: 26.42 MB / 1.118 GB, free: 27.51 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.196e-05/3.573, allocations: 4 kB / 1.118 GB, free: 27.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00717/3.58, allocations: 0.8124 MB / 1.119 GB, free: 26.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0118/3.592, allocations: 3.777 MB / 1.123 GB, free: 23.86 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001496/3.594, allocations: 150.5 kB / 1.123 GB, free: 23.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/3.61, allocations: 10.58 MB / 1.133 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/3.61, allocations: 4 kB / 1.133 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.407/4.017, allocations: 21.29 MB / 1.154 GB, free: 72.67 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005291/4.022, allocations: 1.542 MB / 1.155 GB, free: 72.58 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001871/4.024, allocations: 103.5 kB / 1.156 GB, free: 72.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005746/4.03, allocations: 282.4 kB / 1.156 GB, free: 72.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002356/4.032, allocations: 0.5021 MB / 1.156 GB, free: 72.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001516/4.034, allocations: 183.2 kB / 1.156 GB, free: 72.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004585/4.039, allocations: 1.863 MB / 1.158 GB, free: 72.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.804e-06/4.039, allocations: 0 / 1.158 GB, free: 72.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009759/4.048, allocations: 1.69 MB / 1.16 GB, free: 72.43 MB / 474.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.05527/4.104, allocations: 21.02 MB / 1.18 GB, free: 71.35 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03067/4.134, allocations: 11.53 MB / 1.192 GB, free: 70.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/4.134, allocations: 0 / 1.192 GB, free: 70.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01777/4.152, allocations: 5.947 MB / 1.198 GB, free: 70.76 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008488/4.161, allocations: 0.8421 MB / 1.198 GB, free: 70.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1489/4.31, allocations: 81.38 MB / 1.278 GB, free: 22.35 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01086/4.321, allocations: 6.337 MB / 1.284 GB, free: 19.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008182/4.329, allocations: 3.306 MB / 1.287 GB, free: 17.18 MB / 474.7 MB Notification: Performance of SimCode: time 1.653e-06/4.329, allocations: 4 kB / 1.287 GB, free: 17.18 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/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_IMC_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_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_3_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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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_IMC_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o] Error 1