Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.576e-05/3.596e-05, allocations: 11.8 kB / 292.2 MB, free: 8.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09164, allocations: 50.41 MB / 342.6 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4465/0.5382, allocations: 137.2 MB / 479.7 MB, free: 5.695 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/0.5386, allocations: 106.6 kB / 479.8 MB, free: 5.637 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.46/1.998, allocations: 321.5 MB / 0.7825 GB, free: 45.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.998, allocations: 0 / 0.7825 GB, free: 45.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005663/1.999, allocations: 207.1 kB / 0.7827 GB, free: 45.29 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.03379/2.033, allocations: 8.423 MB / 0.7909 GB, free: 42.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/2.033, allocations: 15.25 kB / 0.791 GB, free: 42.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02816/2.061, allocations: 3.909 MB / 0.7948 GB, free: 41.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02235/2.083, allocations: 7.336 MB / 0.8019 GB, free: 37.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007667/2.084, allocations: 0.6723 MB / 0.8026 GB, free: 37.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003865/2.088, allocations: 0.8874 MB / 0.8035 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04176/2.13, allocations: 14.61 MB / 0.8177 GB, free: 27.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004662/2.13, allocations: 19.52 kB / 0.8177 GB, free: 27.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003309/2.134, allocations: 394.3 kB / 0.8181 GB, free: 27.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008794/2.135, allocations: 0.688 MB / 0.8188 GB, free: 26.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03286/2.168, allocations: 12.4 MB / 0.8309 GB, free: 15.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.422/2.59, allocations: 47.92 MB / 0.8777 GB, free: 37.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02792/2.618, allocations: 28.4 MB / 0.9054 GB, free: 28.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006277/2.624, allocations: 3.002 MB / 0.9084 GB, free: 28.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006495/2.625, allocations: 241.3 kB / 0.9086 GB, free: 28.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.585e-05/2.625, allocations: 73.97 kB / 0.9087 GB, free: 28.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=386): time 9.954e-06/2.625, allocations: 0 / 0.9087 GB, free: 28.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=394): time 0.02743/2.652, allocations: 11.3 MB / 0.9197 GB, free: 26.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/2.652, allocations: 92.72 kB / 0.9198 GB, free: 26.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006981/2.659, allocations: 3.123 MB / 0.9228 GB, free: 26.37 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006783/2.66, allocations: 90.89 kB / 0.9229 GB, free: 26.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002701/2.663, allocations: 3.909 MB / 0.9267 GB, free: 24.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001648/2.664, allocations: 1.354 MB / 0.9281 GB, free: 23.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006339/2.665, allocations: 117.6 kB / 0.9282 GB, free: 23.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005606/2.666, allocations: 0.5499 MB / 0.9287 GB, free: 23.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005338/2.671, allocations: 2.504 MB / 0.9312 GB, free: 23.04 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007018/2.678, allocations: 4.928 MB / 0.936 GB, free: 20.01 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007411/2.686, allocations: 3.724 MB / 0.9396 GB, free: 19.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.239e-05/2.686, allocations: 26.45 kB / 0.9396 GB, free: 19.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0201/2.706, allocations: 8.088 MB / 0.9475 GB, free: 19.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.637e-05/2.706, allocations: 40.75 kB / 0.9476 GB, free: 19.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/2.706, allocations: 83.19 kB / 0.9477 GB, free: 19.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00319/2.709, allocations: 0.8857 MB / 0.9485 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006659/2.716, allocations: 1.358 MB / 0.9498 GB, free: 19.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/2.731, allocations: 7.523 MB / 0.9572 GB, free: 34.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006108/2.737, allocations: 336.6 kB / 0.9575 GB, free: 34.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/2.738, allocations: 312.5 kB / 0.9578 GB, free: 34.04 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 377 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (716): * Single equations (assignments): 714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001727/2.74, allocations: 0.4906 MB / 0.9583 GB, free: 33.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/2.741, allocations: 407.8 kB / 0.9587 GB, free: 33.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01451/2.756, allocations: 5.864 MB / 0.9644 GB, free: 33.39 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.793e-05/2.756, allocations: 41.53 kB / 0.9644 GB, free: 33.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.277e-05/2.756, allocations: 9.281 kB / 0.9645 GB, free: 33.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.496e-05/2.756, allocations: 22.56 kB / 0.9645 GB, free: 33.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03747/2.794, allocations: 15.3 MB / 0.9794 GB, free: 28.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/2.794, allocations: 3.625 kB / 0.9794 GB, free: 28.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004111/2.798, allocations: 0.6853 MB / 0.9801 GB, free: 28.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/2.801, allocations: 0.6906 MB / 0.9808 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007186/2.801, allocations: 83.98 kB / 0.9808 GB, free: 28.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/2.812, allocations: 6.151 MB / 0.9868 GB, free: 24.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.072e-06/2.812, allocations: 7.516 kB / 0.9869 GB, free: 24.69 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0174/2.83, allocations: 8.929 MB / 0.9956 GB, free: 20.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002944/2.833, allocations: 0.8822 MB / 0.9964 GB, free: 19.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/2.834, allocations: 72.97 kB / 0.9965 GB, free: 19.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00348/2.838, allocations: 190.5 kB / 0.9967 GB, free: 19.85 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000969/2.839, allocations: 265.4 kB / 0.9969 GB, free: 19.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004015/2.839, allocations: 122.4 kB / 0.9971 GB, free: 19.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005598/2.845, allocations: 2.322 MB / 0.9993 GB, free: 18.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.372e-06/2.845, allocations: 0 / 0.9993 GB, free: 18.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008702/2.853, allocations: 1.591 MB / 1.001 GB, free: 18.72 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00159/2.855, allocations: 0.7033 MB / 1.002 GB, free: 18.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01358/2.869, allocations: 6.203 MB / 1.008 GB, free: 15.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.967e-06/2.869, allocations: 5.969 kB / 1.008 GB, free: 15.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006211/2.875, allocations: 2.797 MB / 1.01 GB, free: 13.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005406/2.88, allocations: 0.8526 MB / 1.011 GB, free: 12.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04118/2.922, allocations: 13.15 MB / 1.024 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01912/2.941, allocations: 6.207 MB / 1.03 GB, free: 13.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002154/2.943, allocations: 389.9 kB / 1.03 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of SimCode: time 4.751e-06/2.943, allocations: 0 / 1.03 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of Templates: time 0.5706/3.514, allocations: 145.2 MB / 1.172 GB, free: 55.67 MB / 0.4948 GB make -j1 -f Modelica_trunk_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=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.SynchronousMachines.SMPM_MTPACalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:524:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp134 = 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.SynchronousMachines.SMPM_MTPAFunctions.cpp:524:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp134 = 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.SynchronousMachines.SMPM_MTPACalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o] Error 1