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.001581/0.00158, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.073/2.073, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001106/0.001106, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.475e-05/3.488e-05, allocations: 4 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 47.57 MB / 369.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5046/0.6128, allocations: 130.7 MB / 499.9 MB, free: 11.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003626/0.6132, allocations: 98.38 kB / 0.4883 GB, free: 11.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405/3.018, allocations: 379.5 MB / 0.8589 GB, free: 33.16 MB / 442.8 MB Notification: Performance of FrontEnd: time 1.763e-06/3.018, allocations: 0 / 0.8589 GB, free: 33.16 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.0009262/3.019, allocations: 238.8 kB / 0.8591 GB, free: 33.16 MB / 442.8 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.05411/3.073, allocations: 10.27 MB / 0.8691 GB, free: 31.03 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/3.074, allocations: 14.19 kB / 0.8692 GB, free: 31.03 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009858/3.083, allocations: 1.809 MB / 0.8709 GB, free: 30.89 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05524/3.139, allocations: 6.287 MB / 0.8771 GB, free: 30.28 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03281/3.172, allocations: 8.748 MB / 0.8856 GB, free: 29.24 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001401/3.173, allocations: 0.8006 MB / 0.8864 GB, free: 29.22 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005829/3.179, allocations: 1.032 MB / 0.8874 GB, free: 29.21 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06199/3.241, allocations: 19.02 MB / 0.906 GB, free: 27.95 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006316/3.242, allocations: 19.12 kB / 0.906 GB, free: 27.94 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005143/3.247, allocations: 455.1 kB / 0.9064 GB, free: 27.94 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001417/3.248, allocations: 0.8174 MB / 0.9072 GB, free: 27.91 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05397/3.302, allocations: 17.83 MB / 0.9246 GB, free: 27.82 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1628/3.465, allocations: 61.28 MB / 0.9845 GB, free: 1.105 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06609/3.531, allocations: 26.24 MB / 1.01 GB, free: 13.08 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02412/3.555, allocations: 8.323 MB / 1.018 GB, free: 5.473 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4557/4.011, allocations: 26.69 MB / 1.044 GB, free: 62.63 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001312/4.011, allocations: 109.5 kB / 1.044 GB, free: 62.58 MB / 474.8 MB Notification: Performance of pre-optimization done (n=832): time 1.44e-05/4.011, allocations: 0 / 1.044 GB, free: 62.58 MB / 474.8 MB Notification: Performance of matching and sorting (n=838): time 0.08837/4.1, allocations: 27.88 MB / 1.072 GB, free: 60.84 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.358e-05/4.1, allocations: 124.8 kB / 1.072 GB, free: 60.77 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006229/4.106, allocations: 2.671 MB / 1.074 GB, free: 60.51 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002072/4.108, allocations: 136.3 kB / 1.074 GB, free: 60.48 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00286/4.111, allocations: 3.723 MB / 1.078 GB, free: 58.62 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004777/4.116, allocations: 2.753 MB / 1.081 GB, free: 56.82 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001287/4.117, allocations: 140.3 kB / 1.081 GB, free: 56.82 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008811/4.118, allocations: 0.6436 MB / 1.082 GB, free: 56.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01419/4.132, allocations: 5.483 MB / 1.087 GB, free: 56.48 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0169/4.149, allocations: 6.959 MB / 1.094 GB, free: 55.01 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01797/4.167, allocations: 6.643 MB / 1.1 GB, free: 53.91 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.199e-05/4.168, allocations: 17.3 kB / 1.1 GB, free: 53.91 MB / 474.8 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.04922/4.217, allocations: 15.9 MB / 1.116 GB, free: 47.6 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.522e-05/4.217, allocations: 29.06 kB / 1.116 GB, free: 47.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/4.217, allocations: 37.34 kB / 1.116 GB, free: 47.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01629/4.233, allocations: 4.995 MB / 1.121 GB, free: 46.19 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01143/4.245, allocations: 1.342 MB / 1.122 GB, free: 46.15 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02282/4.268, allocations: 12.33 MB / 1.134 GB, free: 39.07 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009256/4.277, allocations: 427.9 kB / 1.134 GB, free: 38.95 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002675/4.28, allocations: 319.1 kB / 1.135 GB, free: 38.88 MB / 474.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (704): * Single equations (assignments): 638 * 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.004537/4.284, allocations: 492.6 kB / 1.135 GB, free: 38.54 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003401/4.288, allocations: 0.4899 MB / 1.136 GB, free: 38.28 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04879/4.337, allocations: 15.92 MB / 1.151 GB, free: 28.5 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04066/4.377, allocations: 14.11 MB / 1.165 GB, free: 16.07 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.753e-05/4.377, allocations: 8.609 kB / 1.165 GB, free: 16.06 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001859/4.378, allocations: 34.98 kB / 1.165 GB, free: 16.06 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1027/4.48, allocations: 31.3 MB / 1.196 GB, free: 8.195 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001164/4.48, allocations: 0.9844 kB / 1.196 GB, free: 8.195 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01283/4.493, allocations: 1.401 MB / 1.197 GB, free: 8.195 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3997/4.893, allocations: 4.803 MB / 1.202 GB, free: 77.86 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00237/4.896, allocations: 176.8 kB / 1.202 GB, free: 77.86 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02337/4.919, allocations: 12.15 MB / 1.214 GB, free: 74.71 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/4.919, allocations: 3.5 kB / 1.214 GB, free: 74.71 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07648/4.996, allocations: 23.54 MB / 1.237 GB, free: 74.2 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01045/5.006, allocations: 1.799 MB / 1.238 GB, free: 74.1 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004269/5.01, allocations: 119 kB / 1.239 GB, free: 74.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01183/5.022, allocations: 373.4 kB / 1.239 GB, free: 74.1 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004615/5.027, allocations: 0.5899 MB / 1.24 GB, free: 74.09 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003134/5.03, allocations: 227.7 kB / 1.24 GB, free: 74.09 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.008322/5.039, allocations: 2.014 MB / 1.242 GB, free: 73.93 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.753e-06/5.039, allocations: 0 / 1.242 GB, free: 73.93 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.02013/5.059, allocations: 1.987 MB / 1.244 GB, free: 73.93 MB / 490.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (538): * Single equations (assignments): 472 * 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.09592/5.155, allocations: 24.73 MB / 1.268 GB, free: 72.47 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03651/5.191, allocations: 13.42 MB / 1.281 GB, free: 67.29 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/5.191, allocations: 0 / 1.281 GB, free: 67.29 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.022/5.213, allocations: 6.989 MB / 1.288 GB, free: 64.58 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01027/5.224, allocations: 0.9781 MB / 1.289 GB, free: 64.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07973/5.304, allocations: 23.73 MB / 1.312 GB, free: 49.94 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01608/5.32, allocations: 7.168 MB / 1.319 GB, free: 44.54 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0119/5.332, allocations: 3.952 MB / 1.323 GB, free: 40.87 MB / 490.8 MB Notification: Performance of SimCode: time 1.563e-06/5.332, allocations: 0 / 1.323 GB, free: 40.87 MB / 490.8 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