Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.807/1.807, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.038e-05/3.058e-05, allocations: 9.188 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07885/0.0789, allocations: 44.5 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4405/0.5195, allocations: 161.1 MB / 461 MB, free: 3.387 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/0.5198, allocations: 95.89 kB / 461.1 MB, free: 3.336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.077/2.597, allocations: 394.9 MB / 0.836 GB, free: 30.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.355e-06/2.597, allocations: 0 / 0.836 GB, free: 30.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009067/2.598, allocations: 265.1 kB / 0.8362 GB, free: 30.8 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.04405/2.642, allocations: 10.27 MB / 0.8463 GB, free: 27.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/2.642, allocations: 9.625 kB / 0.8463 GB, free: 27.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03533/2.678, allocations: 4.385 MB / 0.8506 GB, free: 26.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02944/2.707, allocations: 8.846 MB / 0.8592 GB, free: 25.76 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001219/2.709, allocations: 0.8309 MB / 0.86 GB, free: 25.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00491/2.713, allocations: 1.078 MB / 0.8611 GB, free: 25.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05291/2.766, allocations: 17.1 MB / 0.8778 GB, free: 24.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005418/2.767, allocations: 25.09 kB / 0.8778 GB, free: 24.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004287/2.771, allocations: 470.7 kB / 0.8782 GB, free: 24.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009718/2.772, allocations: 0.6938 MB / 0.8789 GB, free: 24.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0408/2.813, allocations: 14.82 MB / 0.8934 GB, free: 24.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1315/2.945, allocations: 58.1 MB / 0.9501 GB, free: 12.87 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02815/2.973, allocations: 17 MB / 0.9667 GB, free: 14.23 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01492/2.988, allocations: 6.175 MB / 0.9727 GB, free: 8.586 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3615/3.349, allocations: 19.1 MB / 0.9914 GB, free: 58.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.207e-05/3.35, allocations: 91.5 kB / 0.9915 GB, free: 58.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=625): time 1.225e-05/3.35, allocations: 0 / 0.9915 GB, free: 58.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=658): time 0.06475/3.414, allocations: 23.44 MB / 1.014 GB, free: 54.88 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004876/3.419, allocations: 2.94 MB / 1.017 GB, free: 53.28 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009972/3.429, allocations: 3.881 MB / 1.021 GB, free: 52.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001348/3.431, allocations: 115.5 kB / 1.021 GB, free: 52.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003078/3.434, allocations: 4.379 MB / 1.025 GB, free: 50.85 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003145/3.437, allocations: 2.197 MB / 1.028 GB, free: 49.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001415/3.438, allocations: 141.3 kB / 1.028 GB, free: 49.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008549/3.439, allocations: 0.621 MB / 1.028 GB, free: 49.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009946/3.449, allocations: 4.359 MB / 1.033 GB, free: 49.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01195/3.461, allocations: 6.35 MB / 1.039 GB, free: 46.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/3.474, allocations: 5.498 MB / 1.044 GB, free: 46.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.094e-05/3.474, allocations: 16.94 kB / 1.044 GB, free: 46.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=996) (initialization): time 0.03401/3.508, allocations: 12.67 MB / 1.057 GB, free: 46.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.942e-05/3.508, allocations: 29.84 kB / 1.057 GB, free: 46.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/3.508, allocations: 64.97 kB / 1.057 GB, free: 46.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006978/3.515, allocations: 2.395 MB / 1.059 GB, free: 45.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009125/3.524, allocations: 1.522 MB / 1.06 GB, free: 45.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/3.538, allocations: 10.4 MB / 1.071 GB, free: 38.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009297/3.547, allocations: 0.528 MB / 1.071 GB, free: 38.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002109/3.549, allocations: 342.9 kB / 1.071 GB, free: 38.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 722 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.003284/3.553, allocations: 0.5055 MB / 1.072 GB, free: 37.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002406/3.555, allocations: 0.5454 MB / 1.072 GB, free: 37.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03012/3.585, allocations: 11.7 MB / 1.084 GB, free: 32.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02449/3.61, allocations: 10.36 MB / 1.094 GB, free: 28.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.854e-05/3.61, allocations: 10.3 kB / 1.094 GB, free: 28.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001181/3.61, allocations: 30.66 kB / 1.094 GB, free: 28.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07096/3.681, allocations: 30.53 MB / 1.124 GB, free: 9.027 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.273e-05/3.681, allocations: 8 kB / 1.124 GB, free: 9.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00557/3.687, allocations: 0.8729 MB / 1.125 GB, free: 8.359 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007529/3.694, allocations: 2.648 MB / 1.127 GB, free: 6.246 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001398/3.696, allocations: 144.9 kB / 1.127 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02456/3.72, allocations: 15.89 MB / 1.143 GB, free: 6.938 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006324/3.727, allocations: 2.819 MB / 1.146 GB, free: 4.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3639/4.091, allocations: 18.51 MB / 1.164 GB, free: 68.22 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005459/4.096, allocations: 1.573 MB / 1.165 GB, free: 68.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002694/4.099, allocations: 103.2 kB / 1.165 GB, free: 68.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006134/4.105, allocations: 340.4 kB / 1.166 GB, free: 68.13 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002223/4.107, allocations: 0.5046 MB / 1.166 GB, free: 68.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001436/4.109, allocations: 182.9 kB / 1.166 GB, free: 68.12 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007533/4.116, allocations: 2.876 MB / 1.169 GB, free: 67.92 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.208e-06/4.116, allocations: 0 / 1.169 GB, free: 67.92 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01211/4.129, allocations: 2.102 MB / 1.171 GB, free: 67.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (460): * Single equations (assignments): 392 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002319/4.131, allocations: 0.6696 MB / 1.172 GB, free: 67.84 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02461/4.156, allocations: 10.74 MB / 1.182 GB, free: 67.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/4.156, allocations: 2.25 kB / 1.182 GB, free: 67.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01405/4.17, allocations: 5.821 MB / 1.188 GB, free: 66.76 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007686/4.177, allocations: 1.077 MB / 1.189 GB, free: 66.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05126/4.229, allocations: 18.64 MB / 1.207 GB, free: 63.45 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01501/4.244, allocations: 6.807 MB / 1.214 GB, free: 62.57 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003402/4.247, allocations: 465.4 kB / 1.214 GB, free: 62.57 MB / 474.7 MB Notification: Performance of SimCode: time 2.141e-06/4.247, allocations: 0 / 1.214 GB, free: 62.57 MB / 474.7 MB Notification: Performance of Templates: time 2.071/6.318, allocations: 0.6636 GB / 1.878 GB, free: 117.5 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:621:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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.SMEE_GeneratorFunctions.cpp:621:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp324 = 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.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1