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 2.116/2.116, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.356e-05, allocations: 3.906 kB / 258.8 MB, free: 8.68 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3552, allocations: 44.49 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.04351/0.3988, allocations: 23.4 MB / 326.7 MB, free: 6.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02195/0.4208, allocations: 7.298 MB / 334 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005956/0.4268, allocations: 219.4 kB / 334.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008156/0.435, allocations: 1.581 MB / 335.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01351/0.4486, allocations: 2.695 MB / 338.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007321/0.4559, allocations: 1.382 MB / 339.9 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01751/0.4734, allocations: 6.767 MB / 346.7 MB, free: 2.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04634/0.5198, allocations: 14.81 MB / 361.5 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009192/0.5291, allocations: 2.934 MB / 364.4 MB, free: 444 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01151/0.5407, allocations: 3.504 MB / 367.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005403/0.5461, allocations: 0.5777 MB / 368.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002981/0.5491, allocations: 300 kB / 368.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004419/0.5536, allocations: 1.537 MB / 370.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004679/0.5583, allocations: 0.7109 MB / 371 MB, free: 9.793 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03293/0.5913, allocations: 17.76 MB / 388.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.5914, allocations: 3.938 kB / 388.8 MB, free: 7.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.5914, allocations: 0 / 388.8 MB, free: 7.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005789/0.592, allocations: 0 / 388.8 MB, free: 7.984 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04276/0.6348, allocations: 9.98 MB / 398.8 MB, free: 13.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.6348, allocations: 8.031 kB / 398.8 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07965/0.7145, allocations: 8.493 MB / 407.3 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01906/0.7336, allocations: 5.839 MB / 413.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00127/0.7349, allocations: 0.7463 MB / 413.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005152/0.7401, allocations: 0.9725 MB / 414.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6553/1.396, allocations: 16.4 MB / 431.2 MB, free: 83.23 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000803/1.396, allocations: 17.09 kB / 431.2 MB, free: 83.23 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004618/1.401, allocations: 412.2 kB / 431.6 MB, free: 83.11 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001501/1.403, allocations: 0.61 MB / 432.3 MB, free: 83.04 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05202/1.455, allocations: 15.87 MB / 448.1 MB, free: 76.64 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1172/1.572, allocations: 52.22 MB / 0.4886 GB, free: 29.35 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0486/1.62, allocations: 52.2 MB / 0.5396 GB, free: 2.188 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02702/1.648, allocations: 9.612 MB / 0.549 GB, free: 8.57 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.513e-05/1.648, allocations: 64.78 kB / 0.549 GB, free: 8.496 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 6.292e-06/1.648, allocations: 0 / 0.549 GB, free: 8.496 MB / 410.8 MB Notification: Performance of matching and sorting (n=289): time 0.04647/1.694, allocations: 12.85 MB / 0.5616 GB, free: 11.5 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/1.694, allocations: 81.69 kB / 0.5617 GB, free: 11.41 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009832/1.704, allocations: 3.576 MB / 0.5652 GB, free: 7.809 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006703/1.705, allocations: 69.7 kB / 0.5652 GB, free: 7.734 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004958/1.71, allocations: 4.512 MB / 0.5696 GB, free: 3.203 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0018/1.712, allocations: 1.028 MB / 0.5706 GB, free: 2.184 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006854/1.712, allocations: 124 kB / 0.5708 GB, free: 2.062 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005568/1.713, allocations: 0.559 MB / 0.5713 GB, free: 1.492 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007372/1.72, allocations: 2.46 MB / 0.5737 GB, free: 15.03 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/1.731, allocations: 5.59 MB / 0.5792 GB, free: 7.906 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/1.741, allocations: 3.764 MB / 0.5828 GB, free: 4.121 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.741, allocations: 32 kB / 0.5829 GB, free: 4.09 MB / 442.8 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.3316/2.073, allocations: 8.623 MB / 0.5913 GB, free: 149.3 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/2.073, allocations: 51.38 kB / 0.5913 GB, free: 149.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002221/2.073, allocations: 110.2 kB / 0.5914 GB, free: 149.3 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004054/2.078, allocations: 0.8524 MB / 0.5923 GB, free: 149.3 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009661/2.087, allocations: 1.424 MB / 0.5937 GB, free: 149.3 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01589/2.103, allocations: 7.162 MB / 0.6007 GB, free: 145.5 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00707/2.11, allocations: 355.6 kB / 0.601 GB, free: 145.4 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001455/2.112, allocations: 348.7 kB / 0.6013 GB, free: 145.4 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 741 * 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.009713/2.122, allocations: 3.646 MB / 0.6049 GB, free: 143.6 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/2.123, allocations: 420.3 kB / 0.6053 GB, free: 143.6 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01617/2.139, allocations: 5.186 MB / 0.6104 GB, free: 141.5 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-05/2.139, allocations: 31.25 kB / 0.6104 GB, free: 141.5 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/2.139, allocations: 7.688 kB / 0.6104 GB, free: 141.5 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001005/2.139, allocations: 19.23 kB / 0.6104 GB, free: 141.5 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03472/2.174, allocations: 12.4 MB / 0.6225 GB, free: 136.5 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-05/2.174, allocations: 3.344 kB / 0.6225 GB, free: 136.5 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004736/2.179, allocations: 0.5522 MB / 0.6231 GB, free: 136.4 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003283/2.182, allocations: 0.6759 MB / 0.6237 GB, free: 136.3 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006138/2.183, allocations: 69.8 kB / 0.6238 GB, free: 136.3 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/2.196, allocations: 6.309 MB / 0.63 GB, free: 130.8 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/2.196, allocations: 4 kB / 0.63 GB, free: 130.8 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01885/2.215, allocations: 7.845 MB / 0.6376 GB, free: 123.1 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002971/2.218, allocations: 0.8355 MB / 0.6384 GB, free: 122.3 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001426/2.22, allocations: 60.92 kB / 0.6385 GB, free: 122.2 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003938/2.224, allocations: 167.9 kB / 0.6387 GB, free: 122 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009301/2.225, allocations: 210 kB / 0.6389 GB, free: 121.8 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003168/2.225, allocations: 91.97 kB / 0.6389 GB, free: 121.7 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.006853/2.232, allocations: 2.614 MB / 0.6415 GB, free: 119.1 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.343e-06/2.232, allocations: 4 kB / 0.6415 GB, free: 119.1 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.008737/2.241, allocations: 1.555 MB / 0.643 GB, free: 117.6 MB / 442.8 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 (274): * Single equations (assignments): 273 * 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.001028/2.242, allocations: 222.8 kB / 0.6432 GB, free: 117.3 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01558/2.257, allocations: 6.171 MB / 0.6493 GB, free: 111.1 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/2.257, allocations: 0 / 0.6493 GB, free: 111.1 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006957/2.264, allocations: 2.529 MB / 0.6517 GB, free: 108.6 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007013/2.271, allocations: 0.8511 MB / 0.6526 GB, free: 107.8 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04407/2.316, allocations: 19.01 MB / 0.6711 GB, free: 88.66 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01272/2.328, allocations: 6.173 MB / 0.6772 GB, free: 82.45 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/2.331, allocations: 383.3 kB / 0.6775 GB, free: 82.08 MB / 442.8 MB Notification: Performance of SimCode: time 2.034e-06/2.331, allocations: 0 / 0.6775 GB, free: 82.08 MB / 442.8 MB Notification: Performance of Templates: time 0.6637/2.995, allocations: 148.7 MB / 0.8227 GB, free: 76.39 MB / 442.8 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=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_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:29: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:113:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp468 = 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:113:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp468 = 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