Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics") Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.653e-05/2.667e-05, allocations: 0 / 292.2 MB, free: 8.859 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.09219, allocations: 50.41 MB / 342.6 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4317/0.5239, allocations: 127.3 MB / 469.9 MB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/0.5243, allocations: 99.67 kB / 470 MB, free: 15.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.468/1.992, allocations: 337.3 MB / 0.7884 GB, free: 60.03 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.493e-06/1.992, allocations: 0 / 0.7884 GB, free: 60.03 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006333/1.993, allocations: 210.9 kB / 0.7886 GB, free: 60.01 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2620 * Number of variables: 2620 Notification: Performance of Generate backend data structure: time 0.03744/2.03, allocations: 8.948 MB / 0.7973 GB, free: 56.63 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/2.03, allocations: 10.41 kB / 0.7973 GB, free: 56.63 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0328/2.063, allocations: 4.216 MB / 0.8014 GB, free: 55.76 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02346/2.086, allocations: 8.05 MB / 0.8093 GB, free: 51.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008094/2.087, allocations: 0.6649 MB / 0.8099 GB, free: 51.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/2.091, allocations: 0.8845 MB / 0.8108 GB, free: 51.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04312/2.134, allocations: 15.29 MB / 0.8257 GB, free: 37.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004263/2.135, allocations: 15.89 kB / 0.8257 GB, free: 37.54 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003456/2.138, allocations: 388.5 kB / 0.8261 GB, free: 37.18 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009549/2.139, allocations: 0.7265 MB / 0.8268 GB, free: 36.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03462/2.174, allocations: 13.39 MB / 0.8399 GB, free: 23.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4233/2.597, allocations: 51.34 MB / 0.89 GB, free: 37.49 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02922/2.626, allocations: 26.31 MB / 0.9157 GB, free: 32.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006498/2.633, allocations: 3.171 MB / 0.9188 GB, free: 32.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006062/2.634, allocations: 163.3 kB / 0.919 GB, free: 32.36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.108e-05/2.634, allocations: 74.36 kB / 0.9191 GB, free: 32.32 MB / 474.7 MB Notification: Performance of pre-optimization done (n=404): time 1.005e-05/2.634, allocations: 1.375 kB / 0.9191 GB, free: 32.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=410): time 0.03162/2.665, allocations: 12.36 MB / 0.9311 GB, free: 30.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.317e-05/2.666, allocations: 96.94 kB / 0.9312 GB, free: 30.58 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007506/2.673, allocations: 3.215 MB / 0.9344 GB, free: 30.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007193/2.674, allocations: 92.83 kB / 0.9344 GB, free: 30.27 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002742/2.677, allocations: 3.875 MB / 0.9382 GB, free: 28.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001799/2.678, allocations: 1.395 MB / 0.9396 GB, free: 27.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007354/2.679, allocations: 119.4 kB / 0.9397 GB, free: 27.32 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005863/2.68, allocations: 0.547 MB / 0.9402 GB, free: 26.99 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00607/2.686, allocations: 2.721 MB / 0.9429 GB, free: 26.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007671/2.694, allocations: 4.83 MB / 0.9476 GB, free: 24.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008294/2.702, allocations: 3.899 MB / 0.9514 GB, free: 24.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.866e-05/2.702, allocations: 22.47 kB / 0.9514 GB, free: 24.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02222/2.724, allocations: 8.578 MB / 0.9598 GB, free: 23.96 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.502e-05/2.724, allocations: 37.75 kB / 0.9599 GB, free: 23.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/2.725, allocations: 76.64 kB / 0.9599 GB, free: 23.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004543/2.729, allocations: 1.216 MB / 0.9611 GB, free: 23.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007077/2.736, allocations: 1.314 MB / 0.9624 GB, free: 23.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/2.754, allocations: 9.063 MB / 0.9713 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005799/2.76, allocations: 340.8 kB / 0.9716 GB, free: 19.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001444/2.762, allocations: 283.5 kB / 0.9718 GB, free: 19.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (697): * Single equations (assignments): 692 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001897/2.764, allocations: 477.5 kB / 0.9723 GB, free: 19.59 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/2.765, allocations: 399.5 kB / 0.9727 GB, free: 19.39 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/2.782, allocations: 6.58 MB / 0.9791 GB, free: 16.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01324/2.795, allocations: 5.463 MB / 0.9844 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/2.795, allocations: 10.28 kB / 0.9845 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.159e-05/2.795, allocations: 19.59 kB / 0.9845 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04162/2.837, allocations: 16.22 MB / 1 GB, free: 7.891 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.179e-05/2.837, allocations: 7.844 kB / 1 GB, free: 7.891 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004404/2.841, allocations: 0.7159 MB / 1.001 GB, free: 7.867 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004495/2.846, allocations: 1.067 MB / 1.002 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008523/2.847, allocations: 99.52 kB / 1.002 GB, free: 7.594 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01531/2.862, allocations: 8.015 MB / 1.01 GB, free: 1.348 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.511e-05/2.862, allocations: 10.81 kB / 1.01 GB, free: 1.34 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03277/2.895, allocations: 10.7 MB / 1.02 GB, free: 9.637 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003363/2.898, allocations: 0.9712 MB / 1.021 GB, free: 8.746 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001309/2.9, allocations: 79.8 kB / 1.021 GB, free: 8.672 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003435/2.903, allocations: 208.5 kB / 1.022 GB, free: 8.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001029/2.904, allocations: 281.8 kB / 1.022 GB, free: 8.348 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004972/2.905, allocations: 126.4 kB / 1.022 GB, free: 8.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005986/2.911, allocations: 2.403 MB / 1.024 GB, free: 6.109 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.146e-06/2.911, allocations: 0 / 1.024 GB, free: 6.109 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009143/2.92, allocations: 1.654 MB / 1.026 GB, free: 4.469 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (392): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,40.8%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001666/2.922, allocations: 0.5974 MB / 1.027 GB, free: 3.996 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01801/2.94, allocations: 6.869 MB / 1.033 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/2.94, allocations: 0 / 1.033 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009051/2.949, allocations: 3.276 MB / 1.037 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005748/2.955, allocations: 0.8613 MB / 1.037 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3416/3.296, allocations: 13.87 MB / 1.051 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01389/3.31, allocations: 6.168 MB / 1.057 GB, free: 100 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002235/3.312, allocations: 379.6 kB / 1.057 GB, free: 100 MB / 0.4948 GB Notification: Performance of SimCode: time 1.987e-06/3.312, allocations: 0.75 kB / 1.057 GB, free: 100 MB / 0.4948 GB Notification: Performance of Templates: time 0.209/3.521, allocations: 150.9 MB / 1.205 GB, free: 25.41 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsFunctions.cpp:479:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp148 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsFunctions.cpp:479:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp148 = 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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.o] Error 1