Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.569e-05, allocations: 4 kB / 292.2 MB, free: 8.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.41 MB / 342.6 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.519/0.6263, allocations: 157.3 MB / 499.9 MB, free: 1.832 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.6266, allocations: 106.1 kB / 0.4883 GB, free: 1.773 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.615/2.242, allocations: 375 MB / 0.8545 GB, free: 9.996 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.749e-06/2.242, allocations: 0 / 0.8545 GB, free: 9.996 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009455/2.243, allocations: 287.6 kB / 0.8548 GB, free: 9.715 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.71/2.953, allocations: 10.73 MB / 0.8653 GB, free: 28.7 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/2.953, allocations: 9.344 kB / 0.8653 GB, free: 28.7 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03398/2.987, allocations: 4.403 MB / 0.8696 GB, free: 28.1 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03093/3.018, allocations: 9.325 MB / 0.8787 GB, free: 27.58 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001214/3.019, allocations: 0.8699 MB / 0.8795 GB, free: 27.55 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005424/3.024, allocations: 1.154 MB / 0.8807 GB, free: 27.54 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05421/3.079, allocations: 18.05 MB / 0.8983 GB, free: 26.16 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005981/3.079, allocations: 26.8 kB / 0.8983 GB, free: 26.15 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004167/3.083, allocations: 0.4983 MB / 0.8988 GB, free: 26.15 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001088/3.085, allocations: 0.8094 MB / 0.8996 GB, free: 26.12 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04209/3.127, allocations: 15.08 MB / 0.9143 GB, free: 26.07 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1238/3.251, allocations: 59.12 MB / 0.9721 GB, free: 1.238 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03845/3.289, allocations: 32.74 MB / 1.004 GB, free: 3.285 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008121/3.297, allocations: 3.604 MB / 1.008 GB, free: 1.918 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0237/3.321, allocations: 8.542 MB / 1.016 GB, free: 13.93 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.422e-05/3.321, allocations: 68.72 kB / 1.016 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=350): time 7.797e-06/3.321, allocations: 3.969 kB / 1.016 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of matching and sorting (n=390): time 0.03949/3.361, allocations: 13.52 MB / 1.029 GB, free: 3.801 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.974e-05/3.361, allocations: 94.47 kB / 1.029 GB, free: 3.695 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/3.372, allocations: 4.268 MB / 1.033 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007584/3.373, allocations: 93.7 kB / 1.034 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005657/3.379, allocations: 5.254 MB / 1.039 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002257/3.381, allocations: 1.358 MB / 1.04 GB, free: 9.875 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007677/3.382, allocations: 136 kB / 1.04 GB, free: 9.742 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006836/3.383, allocations: 0.5809 MB / 1.041 GB, free: 9.234 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007339/3.39, allocations: 2.778 MB / 1.043 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3432/3.733, allocations: 5.771 MB / 1.049 GB, free: 87.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009932/3.743, allocations: 4.151 MB / 1.053 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001028/3.743, allocations: 30.28 kB / 1.053 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02444/3.768, allocations: 9.11 MB / 1.062 GB, free: 86.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000117/3.768, allocations: 50.2 kB / 1.062 GB, free: 86.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002054/3.768, allocations: 103.8 kB / 1.062 GB, free: 86.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003645/3.772, allocations: 0.9377 MB / 1.063 GB, free: 86.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008293/3.78, allocations: 1.597 MB / 1.065 GB, free: 86.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/3.795, allocations: 9.38 MB / 1.074 GB, free: 82.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007502/3.802, allocations: 412.6 kB / 1.074 GB, free: 82.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001486/3.804, allocations: 363 kB / 1.075 GB, free: 82.92 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * 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,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001535/3.805, allocations: 0.5463 MB / 1.075 GB, free: 82.81 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/3.807, allocations: 0.5125 MB / 1.076 GB, free: 82.81 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01539/3.822, allocations: 6.299 MB / 1.082 GB, free: 82.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-05/3.822, allocations: 40.38 kB / 1.082 GB, free: 82.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/3.822, allocations: 8.812 kB / 1.082 GB, free: 82.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.052e-05/3.822, allocations: 17.58 kB / 1.082 GB, free: 82.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0385/3.861, allocations: 15.41 MB / 1.097 GB, free: 81.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.548e-05/3.861, allocations: 0 / 1.097 GB, free: 81.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005207/3.866, allocations: 0.7483 MB / 1.098 GB, free: 81.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003051/3.869, allocations: 0.7714 MB / 1.098 GB, free: 81.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007219/3.87, allocations: 83.52 kB / 1.098 GB, free: 81.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/3.882, allocations: 8.555 MB / 1.107 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/3.882, allocations: 3.5 kB / 1.107 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/3.902, allocations: 9.506 MB / 1.116 GB, free: 76.92 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00372/3.905, allocations: 1.042 MB / 1.117 GB, free: 76.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/3.907, allocations: 72.77 kB / 1.117 GB, free: 76.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004368/3.911, allocations: 231.7 kB / 1.117 GB, free: 76.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009536/3.912, allocations: 263.2 kB / 1.118 GB, free: 76.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004242/3.913, allocations: 113 kB / 1.118 GB, free: 76.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007669/3.92, allocations: 3.167 MB / 1.121 GB, free: 76.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.1e-07/3.92, allocations: 0 / 1.121 GB, free: 76.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00983/3.93, allocations: 1.919 MB / 1.123 GB, free: 76.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (368): * Single equations (assignments): 362 * 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 Backend phase and start with SimCode phase: time 0.001563/3.932, allocations: 0.7419 MB / 1.123 GB, free: 76.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01518/3.947, allocations: 7.246 MB / 1.13 GB, free: 75.54 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.443e-06/3.947, allocations: 3.75 kB / 1.13 GB, free: 75.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0073/3.954, allocations: 3.383 MB / 1.134 GB, free: 74.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007327/3.962, allocations: 1.161 MB / 1.135 GB, free: 74.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04295/4.005, allocations: 16.34 MB / 1.151 GB, free: 68.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01437/4.019, allocations: 7.293 MB / 1.158 GB, free: 66.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002598/4.022, allocations: 453.4 kB / 1.158 GB, free: 66.27 MB / 0.5105 GB Notification: Performance of SimCode: time 2.329e-06/4.022, allocations: 0 / 1.158 GB, free: 66.27 MB / 0.5105 GB Notification: Performance of Templates: time 1.362/5.384, allocations: 433.1 MB / 1.581 GB, free: 55.83 MB / 0.5574 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:503:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = 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.SMR_CurrentSourceFunctions.cpp:503:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = 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.SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1