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.002436/0.002436, allocations: 181.4 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.341/2.341, 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.001135/0.001135, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.328e-05/3.355e-05, allocations: 7.938 kB / 321.6 MB, free: 17.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1284, allocations: 47.57 MB / 369.2 MB, free: 2.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5249/0.6534, allocations: 126.2 MB / 495.4 MB, free: 15.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005454/0.654, allocations: 105.4 kB / 495.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.742/2.396, allocations: 338 MB / 0.8139 GB, free: 11.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.625e-06/2.396, allocations: 0 / 0.8139 GB, free: 11.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007574/2.397, allocations: 215.8 kB / 0.8141 GB, free: 10.93 MB / 410.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.06371/2.461, allocations: 9.043 MB / 0.823 GB, free: 1.797 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.863e-05/2.461, allocations: 8.031 kB / 0.823 GB, free: 1.789 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01136/2.472, allocations: 1.568 MB / 0.8245 GB, free: 212 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07225/2.545, allocations: 4.866 MB / 0.8293 GB, free: 11.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0473/2.592, allocations: 7.873 MB / 0.837 GB, free: 3.387 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002055/2.594, allocations: 0.6902 MB / 0.8376 GB, free: 2.695 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00738/2.602, allocations: 0.9022 MB / 0.8385 GB, free: 1.793 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8321/3.434, allocations: 16.51 MB / 0.8546 GB, free: 31.32 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000657/3.434, allocations: 12.34 kB / 0.8546 GB, free: 31.32 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00479/3.439, allocations: 399.3 kB / 0.855 GB, free: 31.32 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001529/3.441, allocations: 0.6951 MB / 0.8557 GB, free: 31.3 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05153/3.492, allocations: 15.19 MB / 0.8705 GB, free: 31.21 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1414/3.634, allocations: 53.88 MB / 0.9232 GB, free: 14.24 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03059/3.664, allocations: 18.76 MB / 0.9415 GB, free: 1.441 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02195/3.686, allocations: 7.17 MB / 0.9485 GB, free: 15.11 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07051/3.757, allocations: 22.67 MB / 0.9706 GB, free: 2.816 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/3.757, allocations: 91.83 kB / 0.9707 GB, free: 2.719 MB / 442.8 MB Notification: Performance of pre-optimization done (n=684): time 1.226e-05/3.757, allocations: 0 / 0.9707 GB, free: 2.719 MB / 442.8 MB Notification: Performance of matching and sorting (n=690): time 0.08637/3.844, allocations: 23.76 MB / 0.9939 GB, free: 14.81 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/3.844, allocations: 119.2 kB / 0.994 GB, free: 14.68 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00735/3.851, allocations: 2.432 MB / 0.9964 GB, free: 12.5 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001732/3.853, allocations: 117.7 kB / 0.9965 GB, free: 12.38 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003338/3.856, allocations: 3.315 MB / 0.9997 GB, free: 9.41 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004768/3.861, allocations: 2.267 MB / 1.002 GB, free: 7.363 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001943/3.863, allocations: 120 kB / 1.002 GB, free: 7.246 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001053/3.864, allocations: 0.5891 MB / 1.003 GB, free: 6.73 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/3.879, allocations: 4.635 MB / 1.007 GB, free: 2.586 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4056/4.284, allocations: 6.564 MB / 1.014 GB, free: 76.16 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01791/4.302, allocations: 5.64 MB / 1.019 GB, free: 76.06 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/4.302, allocations: 13.36 kB / 1.019 GB, free: 76.06 MB / 474.8 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.04441/4.347, allocations: 13.29 MB / 1.032 GB, free: 75.8 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-05/4.347, allocations: 22.41 kB / 1.032 GB, free: 75.8 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/4.347, allocations: 36.2 kB / 1.032 GB, free: 75.8 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01344/4.361, allocations: 3.837 MB / 1.036 GB, free: 75.73 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01015/4.371, allocations: 1.123 MB / 1.037 GB, free: 75.73 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/4.391, allocations: 10.67 MB / 1.047 GB, free: 72.59 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008167/4.399, allocations: 347.4 kB / 1.048 GB, free: 72.59 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/4.401, allocations: 274.7 kB / 1.048 GB, free: 72.59 MB / 474.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (601): * Single equations (assignments): 533 * 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.003677/4.405, allocations: 431.2 kB / 1.048 GB, free: 72.48 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/4.407, allocations: 433 kB / 1.049 GB, free: 72.48 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04235/4.449, allocations: 13.17 MB / 1.062 GB, free: 72.14 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03394/4.483, allocations: 11.72 MB / 1.073 GB, free: 71.85 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.234e-05/4.483, allocations: 0.9844 kB / 1.073 GB, free: 71.85 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001841/4.484, allocations: 27.61 kB / 1.073 GB, free: 71.85 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07193/4.556, allocations: 26.13 MB / 1.099 GB, free: 61.02 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.893e-05/4.556, allocations: 3.938 kB / 1.099 GB, free: 61.02 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007507/4.563, allocations: 0.8076 MB / 1.099 GB, free: 61 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01261/4.576, allocations: 3.796 MB / 1.103 GB, free: 59.88 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001884/4.578, allocations: 142.5 kB / 1.103 GB, free: 59.8 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01746/4.595, allocations: 10.55 MB / 1.114 GB, free: 53.49 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/4.595, allocations: 4.734 kB / 1.114 GB, free: 53.49 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04948/4.645, allocations: 19.66 MB / 1.133 GB, free: 39.65 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006166/4.651, allocations: 1.534 MB / 1.134 GB, free: 38.26 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002962/4.654, allocations: 95.16 kB / 1.134 GB, free: 38.17 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006739/4.661, allocations: 288.8 kB / 1.135 GB, free: 37.97 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00295/4.664, allocations: 0.5008 MB / 1.135 GB, free: 37.64 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00149/4.665, allocations: 185.3 kB / 1.135 GB, free: 37.48 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.004472/4.67, allocations: 1.835 MB / 1.137 GB, free: 35.83 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.432e-06/4.67, allocations: 0 / 1.137 GB, free: 35.83 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01073/4.681, allocations: 1.68 MB / 1.139 GB, free: 34.16 MB / 474.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (436): * Single equations (assignments): 368 * 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.0508/4.732, allocations: 20.75 MB / 1.159 GB, free: 15.7 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03155/4.763, allocations: 11.33 MB / 1.17 GB, free: 5.559 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/4.763, allocations: 4.125 kB / 1.17 GB, free: 5.555 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01805/4.781, allocations: 5.85 MB / 1.176 GB, free: 356 kB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01072/4.792, allocations: 0.9493 MB / 1.177 GB, free: 0 / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4418/5.234, allocations: 20.98 MB / 1.197 GB, free: 93.84 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01548/5.25, allocations: 6.331 MB / 1.203 GB, free: 92.97 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009694/5.259, allocations: 3.311 MB / 1.207 GB, free: 92.96 MB / 490.8 MB Notification: Performance of SimCode: time 1.523e-06/5.259, allocations: 2.469 kB / 1.207 GB, free: 92.96 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_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