Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.69e-05, allocations: 0 / 292.2 MB, free: 8.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1297, allocations: 50.43 MB / 342.6 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4813/0.611, allocations: 164.2 MB / 0.4949 GB, free: 11.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.6113, allocations: 99.05 kB / 0.495 GB, free: 11.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.942/2.553, allocations: 386.1 MB / 0.8721 GB, free: 43.14 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.525e-06/2.553, allocations: 0 / 0.8721 GB, free: 43.14 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001449/2.554, allocations: 285.4 kB / 0.8723 GB, free: 43.11 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04972/2.604, allocations: 11.02 MB / 0.8831 GB, free: 39.63 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/2.604, allocations: 9.75 kB / 0.8831 GB, free: 39.63 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03401/2.638, allocations: 4.476 MB / 0.8875 GB, free: 38.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03066/2.669, allocations: 9.539 MB / 0.8968 GB, free: 37.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001138/2.67, allocations: 0.902 MB / 0.8977 GB, free: 37.74 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004917/2.675, allocations: 1.185 MB / 0.8988 GB, free: 37.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05514/2.73, allocations: 18.41 MB / 0.9168 GB, free: 36.24 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006726/2.731, allocations: 26.66 kB / 0.9168 GB, free: 36.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004408/2.735, allocations: 0.5125 MB / 0.9173 GB, free: 36.23 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/2.737, allocations: 0.8235 MB / 0.9181 GB, free: 36.21 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04276/2.779, allocations: 15.34 MB / 0.9331 GB, free: 36.15 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1346/2.914, allocations: 61.01 MB / 0.9927 GB, free: 9.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03762/2.952, allocations: 32.93 MB / 1.025 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008737/2.961, allocations: 3.686 MB / 1.028 GB, free: 7.984 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02586/2.987, allocations: 8.798 MB / 1.037 GB, free: 0.9375 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.761e-05/2.987, allocations: 73.41 kB / 1.037 GB, free: 0.8555 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=362): time 7.335e-06/2.987, allocations: 0 / 1.037 GB, free: 0.8555 MB / 0.4948 GB Notification: Performance of matching and sorting (n=404): time 0.0466/3.033, allocations: 14.25 MB / 1.051 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.399e-05/3.033, allocations: 90.58 kB / 1.051 GB, free: 4.938 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01204/3.045, allocations: 4.487 MB / 1.056 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000761/3.046, allocations: 93.7 kB / 1.056 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.3825/3.429, allocations: 5.407 MB / 1.061 GB, free: 86.71 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001894/3.431, allocations: 1.406 MB / 1.062 GB, free: 85.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007688/3.432, allocations: 138.6 kB / 1.062 GB, free: 85.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005821/3.432, allocations: 0.5926 MB / 1.063 GB, free: 85.52 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00705/3.439, allocations: 2.846 MB / 1.066 GB, free: 85.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009345/3.449, allocations: 5.895 MB / 1.071 GB, free: 81.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009256/3.458, allocations: 4.238 MB / 1.076 GB, free: 81.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002131/3.458, allocations: 30.72 kB / 1.076 GB, free: 81.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02443/3.483, allocations: 9.319 MB / 1.085 GB, free: 81.26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/3.483, allocations: 52.09 kB / 1.085 GB, free: 81.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000183/3.483, allocations: 103.8 kB / 1.085 GB, free: 81.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003475/3.486, allocations: 0.9399 MB / 1.086 GB, free: 81.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008828/3.495, allocations: 1.644 MB / 1.087 GB, free: 81.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/3.51, allocations: 9.383 MB / 1.097 GB, free: 77.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008153/3.518, allocations: 427 kB / 1.097 GB, free: 77.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/3.52, allocations: 370.1 kB / 1.097 GB, free: 77.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001938/3.522, allocations: 0.5701 MB / 1.098 GB, free: 77.02 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/3.524, allocations: 0.5347 MB / 1.098 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01747/3.541, allocations: 6.459 MB / 1.105 GB, free: 76.44 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.372e-05/3.541, allocations: 44.28 kB / 1.105 GB, free: 76.44 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.997e-05/3.541, allocations: 14.48 kB / 1.105 GB, free: 76.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001013/3.541, allocations: 21.97 kB / 1.105 GB, free: 76.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04225/3.584, allocations: 15.92 MB / 1.12 GB, free: 75.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.834e-05/3.584, allocations: 3.344 kB / 1.12 GB, free: 75.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005426/3.589, allocations: 0.7641 MB / 1.121 GB, free: 75.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003247/3.592, allocations: 0.7774 MB / 1.122 GB, free: 75.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007882/3.593, allocations: 85.61 kB / 1.122 GB, free: 75.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01235/3.606, allocations: 8.55 MB / 1.13 GB, free: 71.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.654e-06/3.606, allocations: 9.406 kB / 1.13 GB, free: 71.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02074/3.626, allocations: 9.913 MB / 1.14 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004035/3.631, allocations: 1.088 MB / 1.141 GB, free: 69.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001854/3.632, allocations: 74.41 kB / 1.141 GB, free: 69.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00477/3.637, allocations: 237.7 kB / 1.141 GB, free: 69.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/3.638, allocations: 277.6 kB / 1.142 GB, free: 69.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004648/3.639, allocations: 119.8 kB / 1.142 GB, free: 69.72 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00858/3.647, allocations: 3.32 MB / 1.145 GB, free: 69.52 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.011e-06/3.648, allocations: 0 / 1.145 GB, free: 69.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01099/3.659, allocations: 1.988 MB / 1.147 GB, free: 69.51 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001749/3.66, allocations: 0.8313 MB / 1.148 GB, free: 69.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01593/3.676, allocations: 7.395 MB / 1.155 GB, free: 67.23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/3.676, allocations: 1.781 kB / 1.155 GB, free: 67.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007313/3.684, allocations: 3.441 MB / 1.158 GB, free: 65.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008178/3.692, allocations: 1.263 MB / 1.16 GB, free: 65.26 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04944/3.741, allocations: 16.73 MB / 1.176 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01665/3.758, allocations: 7.397 MB / 1.183 GB, free: 52.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002678/3.761, allocations: 474.6 kB / 1.184 GB, free: 51.68 MB / 0.5105 GB Notification: Performance of SimCode: time 2.19e-06/3.761, allocations: 0 / 1.184 GB, free: 51.68 MB / 0.5105 GB Notification: Performance of Templates: time 1.594/5.355, allocations: 445.3 MB / 1.618 GB, free: 105.7 MB / 0.5417 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceFunctions.cpp:595:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp147 = 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_CurrentSourceFunctions.cpp:595:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp147 = 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_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSourceCalcHelperMain.o] Error 1