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.807/1.807, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.456e-05/3.469e-05, allocations: 0 / 255.4 MB, free: 3.148 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07888, allocations: 44.5 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.4727, allocations: 130 MB / 429.9 MB, free: 1.785 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.473, allocations: 105.5 kB / 430 MB, free: 1.727 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.451/1.924, allocations: 332.6 MB / 0.7447 GB, free: 45.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.946e-06/1.924, allocations: 0 / 0.7447 GB, free: 45.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005994/1.925, allocations: 219.3 kB / 0.7449 GB, free: 45.21 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.03669/1.961, allocations: 8.75 MB / 0.7535 GB, free: 41.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/1.961, allocations: 10.38 kB / 0.7535 GB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04284/2.004, allocations: 5.844 MB / 0.7592 GB, free: 40.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02234/2.027, allocations: 7.435 MB / 0.7664 GB, free: 36.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00104/2.028, allocations: 0.7263 MB / 0.7672 GB, free: 35.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004403/2.032, allocations: 0.9305 MB / 0.7681 GB, free: 34.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04859/2.081, allocations: 16.73 MB / 0.7844 GB, free: 19.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004618/2.081, allocations: 23.45 kB / 0.7844 GB, free: 19.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003769/2.085, allocations: 412.4 kB / 0.7848 GB, free: 19.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009614/2.086, allocations: 0.7151 MB / 0.7855 GB, free: 18.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04401/2.13, allocations: 15.54 MB / 0.8007 GB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4495/2.58, allocations: 52.77 MB / 0.8522 GB, free: 44.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0395/2.619, allocations: 41.33 MB / 0.8926 GB, free: 27.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01421/2.634, allocations: 7.012 MB / 0.8994 GB, free: 27.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05168/2.685, allocations: 21.73 MB / 0.9206 GB, free: 20.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.461e-05/2.685, allocations: 89.83 kB / 0.9207 GB, free: 20.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=688): time 1.193e-05/2.685, allocations: 0 / 0.9207 GB, free: 20.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=696): time 0.05736/2.743, allocations: 22.73 MB / 0.9429 GB, free: 10.74 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.764e-05/2.743, allocations: 110.8 kB / 0.943 GB, free: 10.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005482/2.748, allocations: 2.44 MB / 0.9454 GB, free: 9.703 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001367/2.75, allocations: 122.1 kB / 0.9455 GB, free: 9.602 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002196/2.752, allocations: 3.523 MB / 0.949 GB, free: 6.891 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003299/2.755, allocations: 2.294 MB / 0.9512 GB, free: 5.105 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/2.757, allocations: 128.9 kB / 0.9513 GB, free: 5.004 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008918/2.758, allocations: 0.604 MB / 0.9519 GB, free: 4.566 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009447/2.767, allocations: 4.457 MB / 0.9563 GB, free: 2.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01186/2.779, allocations: 6.226 MB / 0.9624 GB, free: 14.74 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01336/2.792, allocations: 5.562 MB / 0.9678 GB, free: 11.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.316e-05/2.792, allocations: 18.91 kB / 0.9678 GB, free: 11.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.03774/2.83, allocations: 13.24 MB / 0.9807 GB, free: 472 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.921e-05/2.83, allocations: 28 kB / 0.9808 GB, free: 444 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/2.83, allocations: 52 kB / 0.9808 GB, free: 392 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3103/3.141, allocations: 4.362 MB / 0.9851 GB, free: 90.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007797/3.149, allocations: 1.219 MB / 0.9863 GB, free: 90.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01686/3.166, allocations: 9.643 MB / 0.9957 GB, free: 88.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006396/3.172, allocations: 347.7 kB / 0.996 GB, free: 88.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002284/3.174, allocations: 320.8 kB / 0.9963 GB, free: 88.82 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.003768/3.178, allocations: 474.3 kB / 0.9968 GB, free: 88.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00239/3.181, allocations: 457 kB / 0.9972 GB, free: 88.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03257/3.213, allocations: 12.83 MB / 1.01 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000292/3.213, allocations: 184 kB / 1.01 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-05/3.214, allocations: 0 / 1.01 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001214/3.214, allocations: 33.22 kB / 1.01 GB, free: 88.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06007/3.274, allocations: 24.67 MB / 1.034 GB, free: 86.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.955e-05/3.274, allocations: 3.312 kB / 1.034 GB, free: 86.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005377/3.279, allocations: 0.8103 MB / 1.035 GB, free: 86.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01016/3.289, allocations: 3.877 MB / 1.039 GB, free: 84.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001616/3.291, allocations: 153.8 kB / 1.039 GB, free: 84.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/3.306, allocations: 9.505 MB / 1.048 GB, free: 79.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.188e-06/3.306, allocations: 6.125 kB / 1.048 GB, free: 79.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04157/3.348, allocations: 19.39 MB / 1.067 GB, free: 70.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00483/3.353, allocations: 1.479 MB / 1.068 GB, free: 70.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0023/3.355, allocations: 99.56 kB / 1.069 GB, free: 70.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004865/3.36, allocations: 269.2 kB / 1.069 GB, free: 69.95 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002143/3.362, allocations: 0.5108 MB / 1.069 GB, free: 69.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001589/3.364, allocations: 194.4 kB / 1.069 GB, free: 69.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004321/3.368, allocations: 1.826 MB / 1.071 GB, free: 69.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.963e-06/3.368, allocations: 0 / 1.071 GB, free: 69.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01004/3.378, allocations: 1.724 MB / 1.073 GB, free: 68.67 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.002279/3.38, allocations: 0.6533 MB / 1.074 GB, free: 68.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02452/3.405, allocations: 10.91 MB / 1.084 GB, free: 58.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/3.405, allocations: 0 / 1.084 GB, free: 58.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01388/3.419, allocations: 5.623 MB / 1.09 GB, free: 53.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006446/3.425, allocations: 0.8473 MB / 1.091 GB, free: 52.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04816/3.474, allocations: 17.69 MB / 1.108 GB, free: 37.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01436/3.488, allocations: 6.339 MB / 1.114 GB, free: 32.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003022/3.491, allocations: 389.3 kB / 1.114 GB, free: 32.02 MB / 458.7 MB Notification: Performance of SimCode: time 2.033e-06/3.491, allocations: 0 / 1.114 GB, free: 32.02 MB / 458.7 MB Notification: Performance of Templates: time 1.337/4.828, allocations: 372.6 MB / 1.478 GB, free: 91.9 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/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_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