Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.47e-05/3.516e-05, allocations: 7.938 kB / 249.6 MB, free: 15.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2665, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1923/0.4589, allocations: 129.3 MB / 423.5 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.4592, allocations: 103.9 kB / 423.6 MB, free: 456 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.607/2.067, allocations: 328.8 MB / 0.7347 GB, free: 45.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.022e-06/2.067, allocations: 0 / 0.7347 GB, free: 45.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005625/2.067, allocations: 225.5 kB / 0.7349 GB, free: 45.11 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03437/2.102, allocations: 8.741 MB / 0.7435 GB, free: 42.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/2.102, allocations: 8.812 kB / 0.7435 GB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0417/2.143, allocations: 5.84 MB / 0.7492 GB, free: 41.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02227/2.166, allocations: 7.436 MB / 0.7564 GB, free: 40.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007964/2.166, allocations: 330 kB / 0.7567 GB, free: 40.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004223/2.171, allocations: 0.5504 MB / 0.7573 GB, free: 40.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03473/2.205, allocations: 13.65 MB / 0.7706 GB, free: 40.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.046/2.252, allocations: 15.25 MB / 0.7855 GB, free: 39.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005298/2.252, allocations: 15 kB / 0.7855 GB, free: 39.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003805/2.256, allocations: 7.031 kB / 0.7855 GB, free: 39.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009913/2.257, allocations: 0.7189 MB / 0.7862 GB, free: 38.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1181/2.375, allocations: 52.23 MB / 0.8372 GB, free: 3.691 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3298/2.705, allocations: 41.21 MB / 0.8775 GB, free: 24.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01492/2.72, allocations: 7.005 MB / 0.8843 GB, free: 24.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05283/2.773, allocations: 22.35 MB / 0.9061 GB, free: 23.16 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001131/2.773, allocations: 97.06 kB / 0.9062 GB, free: 23.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=688): time 1.356e-05/2.773, allocations: 2.25 kB / 0.9062 GB, free: 23.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=696): time 0.07209/2.845, allocations: 25.51 MB / 0.9311 GB, free: 20.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/2.845, allocations: 108.4 kB / 0.9312 GB, free: 20.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004754/2.85, allocations: 2.141 MB / 0.9333 GB, free: 19.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001318/2.851, allocations: 33.27 kB / 0.9334 GB, free: 19.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002163/2.853, allocations: 3.552 MB / 0.9368 GB, free: 17.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003243/2.857, allocations: 2.214 MB / 0.939 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001474/2.858, allocations: 0 / 0.939 GB, free: 15.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008923/2.859, allocations: 0.6058 MB / 0.9396 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009312/2.869, allocations: 4.539 MB / 0.944 GB, free: 12.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01113/2.88, allocations: 6.312 MB / 0.9502 GB, free: 8.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0174/2.897, allocations: 6.668 MB / 0.9567 GB, free: 6.434 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.134e-05/2.897, allocations: 14.59 kB / 0.9567 GB, free: 6.434 MB / 426.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.03812/2.935, allocations: 14.17 MB / 0.9706 GB, free: 1.141 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.966e-05/2.935, allocations: 26.56 kB / 0.9706 GB, free: 1.141 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/2.936, allocations: 53.91 kB / 0.9706 GB, free: 1.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01073/2.946, allocations: 3.953 MB / 0.9745 GB, free: 0 / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007411/2.954, allocations: 1.276 MB / 0.9757 GB, free: 0 / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0178/2.972, allocations: 9.944 MB / 0.9854 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006501/2.978, allocations: 276.4 kB / 0.9857 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002089/2.98, allocations: 314.2 kB / 0.986 GB, free: 10.43 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starMQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpmQS.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real smpmQS.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real resistorQS.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] currentRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.003656/2.984, allocations: 383.8 kB / 0.9864 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002543/2.987, allocations: 441.5 kB / 0.9868 GB, free: 9.965 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04801/3.035, allocations: 14.08 MB / 1.001 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003358/3.035, allocations: 181.6 kB / 1.001 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/3.035, allocations: 0 / 1.001 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001256/3.035, allocations: 35.55 kB / 1.001 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3966/3.432, allocations: 25.3 MB / 1.025 GB, free: 85.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-05/3.432, allocations: 3.406 kB / 1.025 GB, free: 85.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006116/3.438, allocations: 0.8579 MB / 1.026 GB, free: 85.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0105/3.449, allocations: 3.851 MB / 1.03 GB, free: 84.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001448/3.45, allocations: 79.5 kB / 1.03 GB, free: 84.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01543/3.466, allocations: 9.83 MB / 1.04 GB, free: 82.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.362e-06/3.466, allocations: 3.375 kB / 1.04 GB, free: 82.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04487/3.51, allocations: 20.53 MB / 1.06 GB, free: 81.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004728/3.515, allocations: 1.512 MB / 1.061 GB, free: 81.72 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002039/3.517, allocations: 3.438 kB / 1.061 GB, free: 81.72 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004775/3.522, allocations: 234.4 kB / 1.061 GB, free: 81.72 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002093/3.524, allocations: 0.514 MB / 1.062 GB, free: 81.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00128/3.526, allocations: 192.4 kB / 1.062 GB, free: 81.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003378/3.529, allocations: 1.567 MB / 1.064 GB, free: 81.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.077e-06/3.529, allocations: 0 / 1.064 GB, free: 81.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009107/3.538, allocations: 1.506 MB / 1.065 GB, free: 81.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002049/3.54, allocations: 485.1 kB / 1.066 GB, free: 81.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.024/3.564, allocations: 11.12 MB / 1.077 GB, free: 81.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/3.564, allocations: 1.906 kB / 1.077 GB, free: 81.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01343/3.578, allocations: 5.723 MB / 1.082 GB, free: 80.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005902/3.584, allocations: 0.6873 MB / 1.083 GB, free: 80.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04859/3.632, allocations: 17.73 MB / 1.1 GB, free: 73.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0143/3.647, allocations: 6.345 MB / 1.106 GB, free: 71.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003093/3.65, allocations: 373.6 kB / 1.107 GB, free: 71.45 MB / 458.7 MB Notification: Performance of SimCode: time 2.463e-06/3.65, allocations: 0 / 1.107 GB, free: 71.45 MB / 458.7 MB Notification: Performance of Templates: time 1.019/4.669, allocations: 373 MB / 1.471 GB, free: 42.73 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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=5 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"." -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:476:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = 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.SynchronousMachines.SMPM_MTPAFunctions.cpp:476:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp295 = 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.SynchronousMachines.SMPM_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o] Error 1