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.842/1.842, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.106e-05, allocations: 7.984 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08041/0.08047, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.5152, allocations: 130 MB / 429.8 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.5155, allocations: 108.3 kB / 429.9 MB, free: 1.891 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.522/2.037, allocations: 332.6 MB / 0.7447 GB, free: 45.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.036e-06/2.037, allocations: 0 / 0.7447 GB, free: 45.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006472/2.038, allocations: 220.1 kB / 0.7449 GB, free: 45.14 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.03622/2.074, allocations: 8.738 MB / 0.7534 GB, free: 41.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/2.074, allocations: 11 kB / 0.7534 GB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04388/2.118, allocations: 5.85 MB / 0.7592 GB, free: 40.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02212/2.14, allocations: 7.439 MB / 0.7664 GB, free: 36.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/2.141, allocations: 0.7201 MB / 0.7671 GB, free: 35.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004406/2.146, allocations: 0.9394 MB / 0.768 GB, free: 34.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04708/2.193, allocations: 16.83 MB / 0.7845 GB, free: 19.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000479/2.193, allocations: 27.7 kB / 0.7845 GB, free: 19.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003904/2.197, allocations: 408.3 kB / 0.7849 GB, free: 19.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000932/2.198, allocations: 0.719 MB / 0.7856 GB, free: 18.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04459/2.243, allocations: 15.67 MB / 0.8009 GB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.415/2.658, allocations: 52.77 MB / 0.8524 GB, free: 44.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04168/2.7, allocations: 41.4 MB / 0.8929 GB, free: 27.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.015/2.715, allocations: 7.007 MB / 0.8997 GB, free: 27.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05333/2.768, allocations: 21.72 MB / 0.9209 GB, free: 20.63 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.099e-05/2.768, allocations: 93.89 kB / 0.921 GB, free: 20.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=688): time 1.206e-05/2.768, allocations: 2.531 kB / 0.921 GB, free: 20.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=696): time 0.0581/2.826, allocations: 22.73 MB / 0.9432 GB, free: 10.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/2.826, allocations: 110.7 kB / 0.9433 GB, free: 10.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005359/2.832, allocations: 2.436 MB / 0.9457 GB, free: 9.566 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001313/2.833, allocations: 120.4 kB / 0.9458 GB, free: 9.465 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/2.835, allocations: 3.519 MB / 0.9492 GB, free: 6.754 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003165/2.839, allocations: 2.301 MB / 0.9515 GB, free: 4.965 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009094/2.84, allocations: 129 kB / 0.9516 GB, free: 4.863 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008506/2.84, allocations: 0.6057 MB / 0.9522 GB, free: 4.426 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009895/2.85, allocations: 4.458 MB / 0.9565 GB, free: 2.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01262/2.863, allocations: 6.276 MB / 0.9627 GB, free: 14.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01324/2.876, allocations: 5.565 MB / 0.9681 GB, free: 11.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.788e-05/2.876, allocations: 16 kB / 0.9681 GB, free: 11.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.03768/2.914, allocations: 13.38 MB / 0.9812 GB, free: 180 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.911e-05/2.914, allocations: 28 kB / 0.9812 GB, free: 152 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/2.914, allocations: 52 kB / 0.9813 GB, free: 100 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3079/3.222, allocations: 4.066 MB / 0.9852 GB, free: 90.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007358/3.23, allocations: 1.217 MB / 0.9864 GB, free: 90.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01733/3.247, allocations: 9.642 MB / 0.9958 GB, free: 88.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006618/3.254, allocations: 352.6 kB / 0.9962 GB, free: 88.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00204/3.256, allocations: 320.7 kB / 0.9965 GB, free: 88.83 MB / 458.7 MB 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.003352/3.259, allocations: 482.8 kB / 0.9969 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002272/3.262, allocations: 452.4 kB / 0.9974 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03404/3.296, allocations: 12.83 MB / 1.01 GB, free: 88.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002812/3.296, allocations: 193.5 kB / 1.01 GB, free: 88.41 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.036e-05/3.296, allocations: 0 / 1.01 GB, free: 88.41 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001179/3.296, allocations: 25.92 kB / 1.01 GB, free: 88.41 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06124/3.357, allocations: 24.68 MB / 1.034 GB, free: 85.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.792e-05/3.358, allocations: 3.344 kB / 1.034 GB, free: 85.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005333/3.363, allocations: 0.8103 MB / 1.035 GB, free: 85.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01064/3.374, allocations: 3.891 MB / 1.039 GB, free: 84.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001592/3.375, allocations: 155.2 kB / 1.039 GB, free: 84.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01538/3.391, allocations: 9.502 MB / 1.048 GB, free: 79.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.06e-06/3.391, allocations: 6.375 kB / 1.048 GB, free: 79.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04262/3.433, allocations: 19.39 MB / 1.067 GB, free: 70.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004813/3.438, allocations: 1.473 MB / 1.069 GB, free: 69.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002217/3.44, allocations: 105.6 kB / 1.069 GB, free: 69.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005003/3.445, allocations: 265.4 kB / 1.069 GB, free: 69.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002235/3.448, allocations: 0.5136 MB / 1.069 GB, free: 69.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001615/3.449, allocations: 190.5 kB / 1.07 GB, free: 69.24 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004331/3.454, allocations: 1.827 MB / 1.071 GB, free: 68.53 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.243e-06/3.454, allocations: 0 / 1.071 GB, free: 68.53 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009853/3.464, allocations: 1.726 MB / 1.073 GB, free: 67.69 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.002182/3.466, allocations: 0.6452 MB / 1.074 GB, free: 67.24 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02456/3.49, allocations: 11.04 MB / 1.085 GB, free: 57.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/3.491, allocations: 4 kB / 1.085 GB, free: 57.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01345/3.504, allocations: 5.657 MB / 1.09 GB, free: 52.47 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006247/3.51, allocations: 0.8474 MB / 1.091 GB, free: 51.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0464/3.557, allocations: 17.71 MB / 1.108 GB, free: 36.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01295/3.57, allocations: 6.348 MB / 1.114 GB, free: 31.19 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002417/3.572, allocations: 378.8 kB / 1.115 GB, free: 30.85 MB / 458.7 MB Notification: Performance of SimCode: time 2.217e-06/3.572, allocations: 0 / 1.115 GB, free: 30.85 MB / 458.7 MB Notification: Performance of Templates: time 1.341/4.913, allocations: 373.4 MB / 1.479 GB, free: 94.43 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=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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: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