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 2.102/2.102, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.705e-05/2.699e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 50.41 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0381/0.1513, allocations: 22.14 MB / 367.1 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02117/0.1726, allocations: 7.246 MB / 374.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005823/0.1784, allocations: 227.4 kB / 374.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007063/0.1856, allocations: 1.55 MB / 376.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01226/0.1979, allocations: 2.523 MB / 378.7 MB, free: 7.137 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00729/0.2052, allocations: 1.357 MB / 380 MB, free: 5.777 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01732/0.2225, allocations: 6.534 MB / 386.6 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04225/0.2649, allocations: 14.78 MB / 401.4 MB, free: 396 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3013/0.5662, allocations: 2.784 MB / 404.1 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009362/0.5756, allocations: 3.289 MB / 407.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005687/0.5814, allocations: 0.5691 MB / 408 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003261/0.5847, allocations: 293.5 kB / 408.3 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004255/0.589, allocations: 1.384 MB / 409.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004769/0.5938, allocations: 0.6807 MB / 410.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02471/0.6186, allocations: 17.34 MB / 427.7 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.6187, allocations: 0 / 427.7 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.6187, allocations: 0 / 427.7 MB, free: 6.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006479/0.6193, allocations: 0 / 427.7 MB, free: 6.41 MB / 330.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.03982/0.6592, allocations: 9.529 MB / 437.2 MB, free: 1.676 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.6593, allocations: 7.438 kB / 437.2 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0478/0.7071, allocations: 5.516 MB / 442.7 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02017/0.7273, allocations: 6.067 MB / 448.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001096/0.7284, allocations: 0.7057 MB / 449.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004977/0.7334, allocations: 0.9247 MB / 450.4 MB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05468/0.7882, allocations: 14.91 MB / 465.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005817/0.7888, allocations: 18.83 kB / 465.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004102/0.7929, allocations: 387.3 kB / 465.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009142/0.7939, allocations: 0.5233 MB / 466.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04682/0.8407, allocations: 13.66 MB / 479.9 MB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.13/0.9708, allocations: 47.72 MB / 0.5153 GB, free: 1.074 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03437/1.005, allocations: 28.53 MB / 0.5432 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008422/1.006, allocations: 238.9 kB / 0.5434 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.002e-05/1.006, allocations: 73.53 kB / 0.5434 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of pre-optimization done (n=384): time 7.274e-06/1.006, allocations: 0 / 0.5434 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of matching and sorting (n=392): time 0.0523/1.059, allocations: 14.62 MB / 0.5577 GB, free: 1.828 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/1.059, allocations: 94.48 kB / 0.5578 GB, free: 1.723 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3394/1.398, allocations: 3.154 MB / 0.5609 GB, free: 146.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000796/1.399, allocations: 90.95 kB / 0.561 GB, free: 146.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00366/1.403, allocations: 3.933 MB / 0.5648 GB, free: 144.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00211/1.405, allocations: 1.348 MB / 0.5661 GB, free: 144 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006823/1.406, allocations: 123.2 kB / 0.5663 GB, free: 144 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004855/1.406, allocations: 0.5488 MB / 0.5668 GB, free: 143.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007535/1.414, allocations: 2.578 MB / 0.5693 GB, free: 142.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/1.424, allocations: 5.041 MB / 0.5742 GB, free: 138.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.434, allocations: 3.776 MB / 0.5779 GB, free: 136.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001704/1.435, allocations: 23.31 kB / 0.5779 GB, free: 136.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02542/1.46, allocations: 8.437 MB / 0.5862 GB, free: 133.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.831e-05/1.46, allocations: 38.78 kB / 0.5862 GB, free: 133.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001543/1.46, allocations: 84.09 kB / 0.5863 GB, free: 133.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003774/1.464, allocations: 0.8294 MB / 0.5871 GB, free: 133.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009517/1.474, allocations: 1.371 MB / 0.5885 GB, free: 133.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01634/1.49, allocations: 7.165 MB / 0.5954 GB, free: 129.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006962/1.497, allocations: 327.1 kB / 0.5958 GB, free: 129.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001499/1.499, allocations: 300.6 kB / 0.596 GB, free: 129.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (724): * Single equations (assignments): 723 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00971/1.508, allocations: 3.496 MB / 0.5995 GB, free: 127.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/1.51, allocations: 414.2 kB / 0.5999 GB, free: 127.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01785/1.528, allocations: 5.983 MB / 0.6057 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.472e-05/1.528, allocations: 44 kB / 0.6057 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/1.528, allocations: 8 kB / 0.6057 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/1.528, allocations: 30.53 kB / 0.6058 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04112/1.569, allocations: 14.85 MB / 0.6203 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/1.569, allocations: 4 kB / 0.6203 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005732/1.575, allocations: 0.6982 MB / 0.621 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003314/1.578, allocations: 0.6878 MB / 0.6216 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007343/1.579, allocations: 87.98 kB / 0.6217 GB, free: 107.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0162/1.595, allocations: 6.326 MB / 0.6279 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/1.595, allocations: 7.984 kB / 0.6279 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02958/1.625, allocations: 9.169 MB / 0.6369 GB, free: 92.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00429/1.629, allocations: 0.8941 MB / 0.6377 GB, free: 91.19 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001964/1.631, allocations: 76.83 kB / 0.6378 GB, free: 91.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005608/1.637, allocations: 187.9 kB / 0.638 GB, free: 90.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/1.638, allocations: 262.6 kB / 0.6382 GB, free: 90.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005303/1.639, allocations: 116 kB / 0.6383 GB, free: 90.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007903/1.647, allocations: 2.365 MB / 0.6407 GB, free: 88.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.647, allocations: 4 kB / 0.6407 GB, free: 88.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01192/1.659, allocations: 1.546 MB / 0.6422 GB, free: 86.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/1.66, allocations: 255.7 kB / 0.6424 GB, free: 86.41 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01857/1.679, allocations: 6.478 MB / 0.6487 GB, free: 79.92 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/1.679, allocations: 12 kB / 0.6487 GB, free: 79.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008292/1.687, allocations: 2.921 MB / 0.6516 GB, free: 76.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007498/1.695, allocations: 0.8477 MB / 0.6524 GB, free: 76.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04284/1.738, allocations: 18.64 MB / 0.6706 GB, free: 57.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01184/1.75, allocations: 5.943 MB / 0.6764 GB, free: 51.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00248/1.752, allocations: 383.3 kB / 0.6768 GB, free: 51.05 MB / 458.7 MB Notification: Performance of SimCode: time 2.084e-06/1.752, allocations: 0 / 0.6768 GB, free: 51.05 MB / 458.7 MB Notification: Performance of Templates: time 0.5837/2.336, allocations: 144.3 MB / 0.8177 GB, free: 60.51 MB / 458.7 MB 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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp435 = 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:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp435 = 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