Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.724e-05/2.732e-05, allocations: 0 / 292.2 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09078, allocations: 50.41 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.486/0.5768, allocations: 167.8 MB / 0.4985 GB, free: 7.66 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.5772, allocations: 105.4 kB / 0.4986 GB, free: 7.602 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.029/2.606, allocations: 391.4 MB / 0.8808 GB, free: 45.51 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.721e-06/2.606, allocations: 5.156 kB / 0.8808 GB, free: 45.51 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001052/2.608, allocations: 261.2 kB / 0.8811 GB, free: 45.48 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: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04442/2.652, allocations: 10.15 MB / 0.891 GB, free: 42.26 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/2.652, allocations: 12.06 kB / 0.891 GB, free: 42.26 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02843/2.681, allocations: 3.736 MB / 0.8946 GB, free: 41.64 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02927/2.71, allocations: 8.894 MB / 0.9033 GB, free: 40.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009748/2.711, allocations: 0.8108 MB / 0.9041 GB, free: 40.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004758/2.716, allocations: 1.059 MB / 0.9051 GB, free: 40.49 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05034/2.766, allocations: 16.05 MB / 0.9208 GB, free: 39.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004931/2.767, allocations: 15.64 kB / 0.9208 GB, free: 39.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003745/2.77, allocations: 466.2 kB / 0.9213 GB, free: 39.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009568/2.771, allocations: 0.7106 MB / 0.922 GB, free: 39.17 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03927/2.811, allocations: 13.27 MB / 0.9349 GB, free: 39.11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1176/2.928, allocations: 55.51 MB / 0.9891 GB, free: 13.74 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02824/2.957, allocations: 21.08 MB / 1.01 GB, free: 11.23 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007435/2.964, allocations: 3.237 MB / 1.013 GB, free: 10.01 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02589/2.99, allocations: 9.652 MB / 1.022 GB, free: 4.113 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.348e-05/2.99, allocations: 71.94 kB / 1.022 GB, free: 4.035 MB / 490.7 MB Notification: Performance of pre-optimization done (n=314): time 6.939e-06/2.99, allocations: 0 / 1.022 GB, free: 4.035 MB / 490.7 MB Notification: Performance of matching and sorting (n=347): time 0.05079/3.041, allocations: 14.17 MB / 1.036 GB, free: 7.578 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008046/3.049, allocations: 2.91 MB / 1.039 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01336/3.062, allocations: 4.445 MB / 1.043 GB, free: 0.7344 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006655/3.063, allocations: 85.7 kB / 1.043 GB, free: 0.6445 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.3469/3.41, allocations: 4.972 MB / 1.048 GB, free: 73.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001737/3.412, allocations: 1.224 MB / 1.05 GB, free: 73.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007969/3.413, allocations: 124.7 kB / 1.05 GB, free: 73.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005589/3.413, allocations: 0.5569 MB / 1.05 GB, free: 72.78 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006853/3.42, allocations: 2.639 MB / 1.053 GB, free: 72.76 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008859/3.429, allocations: 5.3 MB / 1.058 GB, free: 69.43 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008829/3.438, allocations: 3.826 MB / 1.062 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002193/3.438, allocations: 26.16 kB / 1.062 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.02244/3.461, allocations: 8.67 MB / 1.07 GB, free: 68.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/3.461, allocations: 43.12 kB / 1.07 GB, free: 68.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001646/3.461, allocations: 91.64 kB / 1.07 GB, free: 68.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003587/3.465, allocations: 0.9277 MB / 1.071 GB, free: 68.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008058/3.473, allocations: 1.467 MB / 1.073 GB, free: 68.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0155/3.488, allocations: 9.71 MB / 1.082 GB, free: 64.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008611/3.497, allocations: 489.9 kB / 1.083 GB, free: 64.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/3.498, allocations: 339.5 kB / 1.083 GB, free: 64.79 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (755): * Single equations (assignments): 745 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 8,(1,100.0%) 5,(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00161/3.5, allocations: 0.5094 MB / 1.083 GB, free: 64.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00132/3.501, allocations: 0.5027 MB / 1.084 GB, free: 64.36 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01591/3.517, allocations: 6.159 MB / 1.09 GB, free: 63.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01211/3.53, allocations: 5.115 MB / 1.095 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.475e-05/3.53, allocations: 10.69 kB / 1.095 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-05/3.53, allocations: 17.02 kB / 1.095 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05186/3.582, allocations: 21.4 MB / 1.116 GB, free: 62.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.183e-05/3.582, allocations: 3.969 kB / 1.116 GB, free: 62.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003786/3.585, allocations: 0.5877 MB / 1.116 GB, free: 62.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004219/3.59, allocations: 1.135 MB / 1.118 GB, free: 62.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006881/3.59, allocations: 83.14 kB / 1.118 GB, free: 62.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/3.612, allocations: 14.61 MB / 1.132 GB, free: 54.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004509/3.617, allocations: 2.823 MB / 1.135 GB, free: 52.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01969/3.636, allocations: 9.655 MB / 1.144 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003693/3.64, allocations: 1.034 MB / 1.145 GB, free: 46.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001737/3.642, allocations: 80.48 kB / 1.145 GB, free: 46.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00513/3.647, allocations: 252 kB / 1.145 GB, free: 46.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/3.648, allocations: 265.6 kB / 1.146 GB, free: 46.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003926/3.649, allocations: 109.6 kB / 1.146 GB, free: 46.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008272/3.657, allocations: 3.284 MB / 1.149 GB, free: 45.34 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.148e-06/3.657, allocations: 0 / 1.149 GB, free: 45.34 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01128/3.668, allocations: 1.953 MB / 1.151 GB, free: 45.15 MB / 0.4948 GB 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 (292): * Single equations (assignments): 283 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001646/3.67, allocations: 0.7025 MB / 1.152 GB, free: 44.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01499/3.685, allocations: 6.726 MB / 1.158 GB, free: 42.31 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/3.685, allocations: 0 / 1.158 GB, free: 42.31 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008013/3.693, allocations: 3.479 MB / 1.162 GB, free: 40.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006995/3.7, allocations: 1.068 MB / 1.163 GB, free: 40.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04094/3.741, allocations: 15.09 MB / 1.177 GB, free: 31.68 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01463/3.756, allocations: 6.581 MB / 1.184 GB, free: 26.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002426/3.758, allocations: 445.9 kB / 1.184 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of SimCode: time 1.8e-06/3.758, allocations: 0 / 1.184 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of Templates: time 1.13/4.888, allocations: 370.2 MB / 1.546 GB, free: 61.46 MB / 0.5417 GB make -j1 -f Modelica_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:657:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp153 = 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.SMEE_GeneratorFunctions.cpp:657:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp153 = 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.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1