Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.999e-05, allocations: 11.98 kB / 255.4 MB, free: 3.141 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07844/0.07849, allocations: 44.49 MB / 299.9 MB, free: 6.586 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3859/0.4645, allocations: 125.8 MB / 425.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.4648, allocations: 100.5 kB / 425.8 MB, free: 5.812 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.619/2.084, allocations: 381.2 MB / 0.7881 GB, free: 16.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.653e-06/2.084, allocations: 0 / 0.7881 GB, free: 16.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006595/2.085, allocations: 239.8 kB / 0.7883 GB, free: 16.3 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: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.04483/2.13, allocations: 10.26 MB / 0.7983 GB, free: 5.953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/2.13, allocations: 12.03 kB / 0.7984 GB, free: 5.941 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04972/2.18, allocations: 6.284 MB / 0.8045 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03001/2.21, allocations: 8.758 MB / 0.8131 GB, free: 6.793 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001475/2.211, allocations: 0.7944 MB / 0.8138 GB, free: 5.996 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005246/2.216, allocations: 1.031 MB / 0.8148 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6377/2.854, allocations: 18.9 MB / 0.8333 GB, free: 36.87 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005181/2.855, allocations: 9.891 kB / 0.8333 GB, free: 36.87 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004355/2.859, allocations: 454.8 kB / 0.8337 GB, free: 36.87 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001332/2.861, allocations: 0.8195 MB / 0.8345 GB, free: 36.85 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04532/2.906, allocations: 17.69 MB / 0.8518 GB, free: 36.8 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1329/3.039, allocations: 61.28 MB / 0.9116 GB, free: 16.15 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03123/3.07, allocations: 24.9 MB / 0.936 GB, free: 14.86 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01801/3.088, allocations: 8.322 MB / 0.9441 GB, free: 11.25 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09928/3.187, allocations: 28.25 MB / 0.9717 GB, free: 13.53 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/3.188, allocations: 108 kB / 0.9718 GB, free: 13.41 MB / 458.8 MB Notification: Performance of pre-optimization done (n=832): time 1.433e-05/3.188, allocations: 4 kB / 0.9718 GB, free: 13.41 MB / 458.8 MB Notification: Performance of matching and sorting (n=838): time 0.3741/3.562, allocations: 27.88 MB / 0.999 GB, free: 64.77 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.692e-05/3.562, allocations: 124.5 kB / 0.9991 GB, free: 64.7 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006817/3.569, allocations: 2.67 MB / 1.002 GB, free: 64.45 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001699/3.571, allocations: 140.6 kB / 1.002 GB, free: 64.42 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002676/3.573, allocations: 3.712 MB / 1.005 GB, free: 62.5 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004045/3.577, allocations: 2.756 MB / 1.008 GB, free: 60.71 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/3.579, allocations: 139 kB / 1.008 GB, free: 60.71 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0009673/3.58, allocations: 0.6421 MB / 1.009 GB, free: 60.38 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01177/3.592, allocations: 5.488 MB / 1.014 GB, free: 60.36 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01378/3.606, allocations: 6.915 MB / 1.021 GB, free: 58.92 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01474/3.621, allocations: 6.647 MB / 1.028 GB, free: 58.82 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.58e-05/3.621, allocations: 9.938 kB / 1.028 GB, free: 58.82 MB / 458.8 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.03957/3.66, allocations: 15.79 MB / 1.043 GB, free: 58.39 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.147e-05/3.66, allocations: 23.06 kB / 1.043 GB, free: 58.39 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.31e-05/3.66, allocations: 37.75 kB / 1.043 GB, free: 58.39 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.013/3.673, allocations: 4.995 MB / 1.048 GB, free: 58.29 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008284/3.682, allocations: 1.342 MB / 1.049 GB, free: 58.29 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01914/3.701, allocations: 12.33 MB / 1.061 GB, free: 53.21 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007087/3.708, allocations: 434 kB / 1.062 GB, free: 53.09 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002276/3.71, allocations: 313.6 kB / 1.062 GB, free: 53.02 MB / 458.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.00373/3.714, allocations: 489.7 kB / 1.062 GB, free: 52.69 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002553/3.717, allocations: 0.4968 MB / 1.063 GB, free: 52.42 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04079/3.758, allocations: 15.91 MB / 1.078 GB, free: 45.76 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0334/3.791, allocations: 14.12 MB / 1.092 GB, free: 39.89 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/3.791, allocations: 3.969 kB / 1.092 GB, free: 39.89 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001434/3.791, allocations: 40.38 kB / 1.092 GB, free: 39.89 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07175/3.863, allocations: 30.63 MB / 1.122 GB, free: 19.83 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.821e-05/3.863, allocations: 3.953 kB / 1.122 GB, free: 19.82 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006464/3.87, allocations: 1.017 MB / 1.123 GB, free: 19.05 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.012/3.882, allocations: 4.795 MB / 1.128 GB, free: 15.11 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001959/3.884, allocations: 178.4 kB / 1.128 GB, free: 14.95 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01749/3.901, allocations: 12.15 MB / 1.14 GB, free: 3.855 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.603e-06/3.901, allocations: 0 / 1.14 GB, free: 3.855 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3704/4.272, allocations: 24.28 MB / 1.164 GB, free: 78.3 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005858/4.278, allocations: 1.804 MB / 1.165 GB, free: 78.21 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002759/4.28, allocations: 120.3 kB / 1.166 GB, free: 78.21 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00577/4.286, allocations: 365.4 kB / 1.166 GB, free: 78.21 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002821/4.289, allocations: 0.5969 MB / 1.166 GB, free: 78.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002074/4.291, allocations: 224.6 kB / 1.167 GB, free: 78.2 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.005207/4.296, allocations: 2.02 MB / 1.169 GB, free: 78.04 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.492e-06/4.297, allocations: 0 / 1.169 GB, free: 78.04 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01126/4.308, allocations: 1.989 MB / 1.171 GB, free: 78.04 MB / 474.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.002672/4.311, allocations: 0.6442 MB / 1.171 GB, free: 77.94 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03062/4.341, allocations: 13.3 MB / 1.184 GB, free: 77.66 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.801e-06/4.341, allocations: 0 / 1.184 GB, free: 77.66 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01759/4.359, allocations: 6.956 MB / 1.191 GB, free: 77.5 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007164/4.366, allocations: 0.9731 MB / 1.192 GB, free: 77.48 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05504/4.421, allocations: 20.55 MB / 1.212 GB, free: 74.63 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01615/4.437, allocations: 7.17 MB / 1.219 GB, free: 73.72 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003736/4.441, allocations: 428.8 kB / 1.219 GB, free: 73.72 MB / 474.8 MB Notification: Performance of SimCode: time 2.719e-06/4.441, allocations: 3.391 kB / 1.219 GB, free: 73.72 MB / 474.8 MB Notification: Performance of Templates: time 1.709/6.15, allocations: 0.5929 GB / 1.812 GB, free: 48.91 MB / 0.4949 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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))); ^ 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