Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadModel(Modelica): time 1.852/1.852, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.071e-05/3.088e-05, allocations: 0 / 255.4 MB, free: 3.152 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07892/0.07898, allocations: 44.5 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.4938, allocations: 142.8 MB / 442.7 MB, free: 5.363 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.4942, allocations: 99.16 kB / 442.8 MB, free: 5.312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.274/1.768, allocations: 232.6 MB / 0.6596 GB, free: 41.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.878e-06/1.768, allocations: 0 / 0.6596 GB, free: 41.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001119/1.769, allocations: 164.6 kB / 0.6597 GB, free: 41.17 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.05138/1.821, allocations: 6.787 MB / 0.6663 GB, free: 39.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/1.821, allocations: 7.031 kB / 0.6664 GB, free: 39.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02836/1.849, allocations: 3.66 MB / 0.6699 GB, free: 38.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/1.867, allocations: 5.934 MB / 0.6757 GB, free: 37.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007735/1.868, allocations: 0.5231 MB / 0.6762 GB, free: 37.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003102/1.871, allocations: 0.6903 MB / 0.6769 GB, free: 37.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03297/1.904, allocations: 11.24 MB / 0.6879 GB, free: 36.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00036/1.905, allocations: 17.14 kB / 0.6879 GB, free: 36.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002593/1.907, allocations: 299.5 kB / 0.6882 GB, free: 36.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005913/1.908, allocations: 491.8 kB / 0.6887 GB, free: 36.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02786/1.936, allocations: 10.39 MB / 0.6988 GB, free: 36.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08111/2.017, allocations: 38.32 MB / 0.7362 GB, free: 23.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02167/2.039, allocations: 18.38 MB / 0.7542 GB, free: 8.098 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00829/2.047, allocations: 4.202 MB / 0.7583 GB, free: 6.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03401/2.081, allocations: 13.67 MB / 0.7716 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.418e-05/2.081, allocations: 67.47 kB / 0.7717 GB, free: 15.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=399): time 1.4e-05/2.081, allocations: 3.75 kB / 0.7717 GB, free: 15.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.03665/2.118, allocations: 14.24 MB / 0.7856 GB, free: 7.504 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002876/2.121, allocations: 1.933 MB / 0.7875 GB, free: 5.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007588/2.128, allocations: 2.932 MB / 0.7904 GB, free: 2.863 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000818/2.129, allocations: 89.7 kB / 0.7904 GB, free: 2.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00315/2.132, allocations: 3.01 MB / 0.7934 GB, free: 48 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002376/2.135, allocations: 1.401 MB / 0.7947 GB, free: 14.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005768/2.135, allocations: 104 kB / 0.7948 GB, free: 14.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000601/2.136, allocations: 0.5281 MB / 0.7954 GB, free: 14.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006754/2.143, allocations: 2.846 MB / 0.7981 GB, free: 11.65 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009254/2.152, allocations: 4.82 MB / 0.8028 GB, free: 6.297 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008817/2.161, allocations: 3.753 MB / 0.8065 GB, free: 3.102 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.622e-05/2.161, allocations: 20 kB / 0.8065 GB, free: 3.082 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.2937/2.455, allocations: 8.934 MB / 0.8153 GB, free: 65.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.833e-05/2.455, allocations: 37.02 kB / 0.8153 GB, free: 65.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/2.455, allocations: 65.16 kB / 0.8154 GB, free: 65.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007825/2.463, allocations: 2.464 MB / 0.8178 GB, free: 65.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005964/2.469, allocations: 1.048 MB / 0.8188 GB, free: 65.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008819/2.478, allocations: 5.409 MB / 0.8241 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005966/2.484, allocations: 312.9 kB / 0.8244 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001427/2.485, allocations: 275.2 kB / 0.8246 GB, free: 64.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.001778/2.487, allocations: 433 kB / 0.825 GB, free: 64.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/2.488, allocations: 416.5 kB / 0.8254 GB, free: 64.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01885/2.507, allocations: 7.805 MB / 0.8331 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001271/2.507, allocations: 97.31 kB / 0.8332 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/2.507, allocations: 5.547 kB / 0.8332 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.492e-05/2.507, allocations: 19.92 kB / 0.8332 GB, free: 64.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04486/2.552, allocations: 19.4 MB / 0.8521 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-05/2.552, allocations: 7.812 kB / 0.8521 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003427/2.556, allocations: 0.5324 MB / 0.8527 GB, free: 63.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007136/2.563, allocations: 2.42 MB / 0.855 GB, free: 63.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009214/2.564, allocations: 105.6 kB / 0.8551 GB, free: 63.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/2.575, allocations: 7.152 MB / 0.8621 GB, free: 60.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002024/2.577, allocations: 1.872 MB / 0.8639 GB, free: 59.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02447/2.602, allocations: 12.23 MB / 0.8759 GB, free: 55.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003633/2.605, allocations: 1.081 MB / 0.8769 GB, free: 54.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001876/2.607, allocations: 72.52 kB / 0.877 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004026/2.611, allocations: 200.8 kB / 0.8772 GB, free: 54.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001275/2.613, allocations: 324.8 kB / 0.8775 GB, free: 54.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007773/2.613, allocations: 122.9 kB / 0.8776 GB, free: 54.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005165/2.619, allocations: 2.163 MB / 0.8797 GB, free: 53.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.071e-06/2.619, allocations: 3.188 kB / 0.8797 GB, free: 53.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008044/2.627, allocations: 1.369 MB / 0.8811 GB, free: 53.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,11 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.001731/2.628, allocations: 0.694 MB / 0.8817 GB, free: 53.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01622/2.645, allocations: 7.105 MB / 0.8887 GB, free: 50.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/2.645, allocations: 0 / 0.8887 GB, free: 50.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009171/2.654, allocations: 3.564 MB / 0.8922 GB, free: 48.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006318/2.66, allocations: 0.8895 MB / 0.893 GB, free: 48.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03203/2.692, allocations: 12.06 MB / 0.9048 GB, free: 43.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008513/2.701, allocations: 4.552 MB / 0.9093 GB, free: 42.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/2.703, allocations: 328.9 kB / 0.9096 GB, free: 42.05 MB / 442.7 MB Notification: Performance of SimCode: time 2.057e-06/2.703, allocations: 6.875 kB / 0.9096 GB, free: 42.05 MB / 442.7 MB Notification: Performance of Templates: time 0.8557/3.559, allocations: 233.7 MB / 1.138 GB, free: 95.52 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp169 = 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_OpenCircuitCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1